Sha256: 15b7b31a24695bccd36985d8623e64c5106d78e0bcb8d1ec61356fbf215c8983

Contents?: true

Size: 388 Bytes

Versions: 33

Compression:

Stored size: 388 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

33 entries across 33 versions & 1 rubygems

Version Path
trusty-cms-1.2.29 app/models/layout.rb
trusty-cms-1.2.28 app/models/layout.rb
trusty-cms-1.1.28 app/models/layout.rb
trusty-cms-1.1.27 app/models/layout.rb
trusty-cms-1.1.26 app/models/layout.rb
trusty-cms-1.1.25 app/models/layout.rb
trusty-cms-1.1.24 app/models/layout.rb
trusty-cms-1.1.23 app/models/layout.rb
trusty-cms-1.1.22 app/models/layout.rb
trusty-cms-1.1.21 app/models/layout.rb
trusty-cms-1.1.20 app/models/layout.rb
trusty-cms-1.1.19 app/models/layout.rb
trusty-cms-1.1.18 app/models/layout.rb
trusty-cms-1.1.17 app/models/layout.rb
trusty-cms-1.1.16 app/models/layout.rb
trusty-cms-1.1.15 app/models/layout.rb
trusty-cms-1.1.14 app/models/layout.rb
trusty-cms-1.1.13 app/models/layout.rb
trusty-cms-1.1.12 app/models/layout.rb
trusty-cms-1.1.11 app/models/layout.rb