Sha256: 3dbbd6846bdff97b48963f9c3f5aedc3cdba12f20c70e2443555e5d4c1da3cba
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
class Page < ActiveRecord::Base include Content include Nestable validates_presence_of :uid, :name field :name field :uid index :uid, :unique => true field :path field :resource_type def home? path == "/" end def resourceful? resource_type.present? end def to_label name end has_many :page_parts accepts_nested_attributes_for :page_parts end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fullstack-cms-0.1.7 | app/models/page.rb |
fullstack-cms-0.1.6 | app/models/page.rb |