Module: Acts::CommentableWithThreading::ClassMethods

Defined in:
lib/acts_as_commentable_with_threading.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_commentableObject



17
18
19
20
21
# File 'lib/acts_as_commentable_with_threading.rb', line 17

def acts_as_commentable
  has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy, :order => 'created_at ASC'
  include Acts::CommentableWithThreading::InstanceMethods
  extend Acts::CommentableWithThreading::SingletonMethods
end