Sha256: 0289029bd77cf40575a8f12a35c1d572262aa3ad254f1b11e449e55d8cb948bf

Contents?: true

Size: 345 Bytes

Versions: 57

Compression:

Stored size: 345 Bytes

Contents

class Layout < ActiveRecord::Base

  # 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

57 entries across 57 versions & 1 rubygems

Version Path
trusty-cms-4.1.2 app/models/layout.rb
trusty-cms-4.1.1 app/models/layout.rb
trusty-cms-4.1.0 app/models/layout.rb
trusty-cms-4.0.2 app/models/layout.rb
trusty-cms-3.9.7 app/models/layout.rb
trusty-cms-3.9.6 app/models/layout.rb
trusty-cms-3.9.5 app/models/layout.rb
trusty-cms-4.0.1 app/models/layout.rb
trusty-cms-3.9.4 app/models/layout.rb
trusty-cms-3.9.3 app/models/layout.rb
trusty-cms-3.9.2 app/models/layout.rb
trusty-cms-4.0.0 app/models/layout.rb
trusty-cms-3.9.1 app/models/layout.rb
trusty-cms-3.9.0 app/models/layout.rb
trusty-cms-3.8.4 app/models/layout.rb
trusty-cms-3.8.3 app/models/layout.rb
trusty-cms-3.8.2 app/models/layout.rb
trusty-cms-3.8.1 app/models/layout.rb
trusty-cms-3.8.0 app/models/layout.rb
trusty-cms-3.7.1 app/models/layout.rb