Module: ActsAsFollower::Followable::ClassMethods

Defined in:
lib/acts_as_follower/followable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_followableObject


9
10
11
12
13
# File 'lib/acts_as_follower/followable.rb', line 9

def acts_as_followable
  has_many :followings, :as => :followable, :dependent => :destroy, :class_name => 'Follow'
  include ActsAsFollower::Followable::InstanceMethods
  include ActsAsFollower::FollowerLib
end