Module: ErpForms::Extensions::ActiveRecord::ActsAsCommentable::ClassMethods

Defined in:
lib/erp_forms/extensions/active_record/acts_as_commentable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_commentableObject


11
12
13
14
15
16
# File 'lib/erp_forms/extensions/active_record/acts_as_commentable.rb', line 11

def acts_as_commentable
  has_many :comments, :as => :commented_record, :dependent => :destroy

  extend ActsAsCommentable::SingletonMethods
  include ActsAsCommentable::InstanceMethods
end