Module: Sunrise::Feedbacks::Author::ClassMethods

Defined in:
lib/sunrise/feedbacks/author.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



10
11
12
13
14
# File 'lib/sunrise/feedbacks/author.rb', line 10

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