Module: ActsAsAble::Liker::ClassMethods
- Defined in:
- lib/acts_as_able/liker.rb
Instance Method Summary collapse
-
#acts_as_liker ⇒ Object
Those call this method has the ability to be unlike by others.
Instance Method Details
#acts_as_liker ⇒ Object
Those call this method has the ability to be unlike by others
11 12 13 14 |
# File 'lib/acts_as_able/liker.rb', line 11 def acts_as_liker include ActsAsAble::AbleExt has_many :likes, as: :liker, dependent: :destroy, class_name: 'Like' # 有很多不喜欢的 Object end |