module ThreadableComments::ClassMethods

Public Instance Methods

has_threadable_comments() click to toggle source
# File lib/threadable_comments.rb, line 9
def has_threadable_comments
  has_many :comments, class_name: '::ThreadableComments::Comment', as: :commentable, dependent: :destroy
  include ThreadableComments::InstanceMethods
end