Module: Sunrise::Utils::Header::ClassMethods

Defined in:
lib/sunrise/utils/header.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/sunrise/utils/header.rb', line 11

def self.extended(base)
  base.class_eval do
    has_one :header, :as => :headerable, :dependent => :delete
    
    attr_accessible :header_attributes
    
    accepts_nested_attributes_for :header, :reject_if => :all_blank
  end
end