From cd0f2089e8c8c14d74cb8a3e29fe2890b660925c Mon Sep 17 00:00:00 2001 From: dougal Date: Fri, 7 Nov 2008 10:48:21 -0700 Subject: [PATCH] Changed the way components are required to allow them to run in both tests and as a plugin. --- init.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.rb b/init.rb index 83ca2a2..6fad745 100644 --- a/init.rb +++ b/init.rb @@ -1,6 +1,6 @@ -require 'lib/acts_as_follower' -require 'lib/acts_as_followable' -require 'lib/follow' +require File.dirname(__FILE__) + '/lib/acts_as_follower' +require File.dirname(__FILE__) + '/lib/acts_as_followable' +require File.dirname(__FILE__) + '/lib/follow' ActiveRecord::Base.send(:include, ActiveRecord::Acts::Follower) -ActiveRecord::Base.send(:include, ActiveRecord::Acts::Followable) +ActiveRecord::Base.send(:include, ActiveRecord::Acts::Followable) \ No newline at end of file -- libgit2 0.21.0