Sha256: 9731df82e8af2875ca9f6dd5b612b64589304d89f869da0cad45454244b46976

Contents?: true

Size: 387 Bytes

Versions: 35

Compression:

Stored size: 387 Bytes

Contents

class Layout < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  # Default Order
  default_scope {order("name")}

  # Associations
  has_many :pages
  belongs_to :created_by, :class_name => 'User'
  belongs_to :updated_by, :class_name => 'User'

  # Validations
  validates_presence_of :name
  validates_uniqueness_of :name
  validates_length_of :name, :maximum => 100
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
trusty-cms-2.0.28 app/models/layout.rb
trusty-cms-2.0.27 app/models/layout.rb
trusty-cms-3.0.4 app/models/layout.rb
trusty-cms-3.0.3 app/models/layout.rb
trusty-cms-3.0.2 app/models/layout.rb
trusty-cms-3.0.1 app/models/layout.rb
trusty-cms-3.0.0 app/models/layout.rb
trusty-cms-2.0.26 app/models/layout.rb
trusty-cms-2.0.25 app/models/layout.rb
trusty-cms-2.0.24 app/models/layout.rb
trusty-cms-2.0.23 app/models/layout.rb
trusty-cms-2.0.22 app/models/layout.rb
trusty-cms-2.0.21 app/models/layout.rb
trusty-cms-2.0.21.alpha app/models/layout.rb
trusty-cms-2.0.20 app/models/layout.rb
trusty-cms-2.0.2 app/models/layout.rb
trusty-cms-2.0.19 app/models/layout.rb
trusty-cms-2.0.18 app/models/layout.rb
trusty-cms-2.0.17 app/models/layout.rb
trusty-cms-2.0.16 app/models/layout.rb