Module: Sunrise::Comments::Base::ClassMethods

Defined in:
lib/sunrise/comments/base.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



10
11
12
13
14
# File 'lib/sunrise/comments/base.rb', line 10

def self.extended(base)
  base.class_eval do
    has_many :comments, :as => :commentable, :dependent => :delete_all
  end
end