Module: Sunrise::Models::Page::ClassMethods

Defined in:
lib/sunrise/models/page.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



11
12
13
14
15
16
# File 'lib/sunrise/models/page.rb', line 11

def self.extended(base)
  base.class_eval do
    belongs_to :structure
    validates_presence_of :title, :content
  end
end