Module: Commentable::ClassMethods

Defined in:
lib/commentable/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#commentable(options = {}) ⇒ Object



3
4
5
6
# File 'lib/commentable/class_methods.rb', line 3

def commentable(options = {})
  self.commentable_options = options
  has_many :comments, :as => :commentable, :dependent => :destroy
end