public
Description: A Plugin to add Follow functionality for models
Homepage:
Clone URL: git://github.com/tcocca/acts_as_follower.git
acts_as_follower / init.rb
100644 6 lines (4 sloc) 0.247 kb
1
2
3
4
5
6
require File.dirname(__FILE__) + '/lib/acts_as_follower'
require File.dirname(__FILE__) + '/lib/acts_as_followable'
 
ActiveRecord::Base.send(:include, ActiveRecord::Acts::Follower)
ActiveRecord::Base.send(:include, ActiveRecord::Acts::Followable)