Module: Talkie::ActsAsCommentable::ClassMethods
- Defined in:
- lib/talkie/acts_as_commentable.rb
Instance Method Summary collapse
- #acts_as_commentable ⇒ Object (also: #is_commentable)
Instance Method Details
#acts_as_commentable ⇒ Object Also known as: is_commentable
14 15 16 17 18 19 20 |
# File 'lib/talkie/acts_as_commentable.rb', line 14 def acts_as_commentable has_many :comments, as: :commentable, class_name: "Talkie::Comment", inverse_of: :commentable include Talkie::ActsAsCommentable::InstanceMethods end |