Module: Acts::CommentableWithThreading::ClassMethods
- Defined in:
- lib/acts_as_commentable_with_threading.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_commentable ⇒ Object
18 19 20 21 22 23 |
# File 'lib/acts_as_commentable_with_threading.rb', line 18 def acts_as_commentable has_many :comment_threads, :class_name => "Comment", :as => :commentable before_destroy { |record| record.root_comments.destroy_all } include Acts::CommentableWithThreading::LocalInstanceMethods extend Acts::CommentableWithThreading::SingletonMethods end |