Commit cd0f2089e8c8c14d74cb8a3e29fe2890b660925c
1 parent
3be81a7d
Exists in
master
and in
3 other branches
Changed the way components are required to allow them to run in both tests and as a plugin.
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
init.rb
1 | -require 'lib/acts_as_follower' | |
2 | -require 'lib/acts_as_followable' | |
3 | -require 'lib/follow' | |
1 | +require File.dirname(__FILE__) + '/lib/acts_as_follower' | |
2 | +require File.dirname(__FILE__) + '/lib/acts_as_followable' | |
3 | +require File.dirname(__FILE__) + '/lib/follow' | |
4 | 4 | |
5 | 5 | ActiveRecord::Base.send(:include, ActiveRecord::Acts::Follower) |
6 | 6 | -ActiveRecord::Base.send(:include, ActiveRecord::Acts::Followable) |
7 | +ActiveRecord::Base.send(:include, ActiveRecord::Acts::Followable) | |
7 | 8 | \ No newline at end of file | ... | ... |