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.1.10 app/models/layout.rb
trusty-cms-1.1.9 app/models/layout.rb
trusty-cms-1.1.8 app/models/layout.rb
trusty-cms-1.1.7 app/models/layout.rb
trusty-cms-1.1.6 app/models/layout.rb
trusty-cms-1.1.5 app/models/layout.rb
trusty-cms-1.1.4 app/models/layout.rb
trusty-cms-1.1.3 app/models/layout.rb
trusty-cms-1.1.2 app/models/layout.rb
trusty-cms-1.1.1 app/models/layout.rb
trusty-cms-1.1.0 app/models/layout.rb
trusty-cms-1.1.0.rc1 app/models/layout.rb
trusty-cms-1.0.1 app/models/layout.rb