Module: FollowableBehaviour::Followable::ClassMethods
- Defined in:
- lib/followable_behaviour/followable.rb
Instance Method Summary collapse
- #followable_behaviour ⇒ Object (also: #acts_as_followable)
Instance Method Details
#followable_behaviour ⇒ Object Also known as: acts_as_followable
9 10 11 12 13 |
# File 'lib/followable_behaviour/followable.rb', line 9 def followable_behaviour has_many :followings, as: :followable, dependent: :destroy, class_name: 'Follow' include FollowableBehaviour::Followable::InstanceMethods include FollowableBehaviour::FollowerLib end |