Module: TraqHasComments::Owner

Extended by:
ActiveSupport::Concern
Defined in:
lib/traq_has_comments/owner.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, SingletonMethods

Instance Method Summary collapse

Instance Method Details

#owns_commentsObject



8
9
10
11
12
13
14
15
# File 'lib/traq_has_comments/owner.rb', line 8

def owns_comments

  has_many :comments, class_name: 'TraqHasComments::Comment'

  extend ClassMethods
  extend SingletonMethods
  include InstanceMethods
end