Module: FollowableBehaviour::Followable::ClassMethods

Defined in:
lib/followable_behaviour/followable.rb

Instance Method Summary collapse

Instance Method Details

#followable_behaviourObject 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