Sha256: d47beb8b2e1ebe9fa3e6ca23c64508af1a63c1a7ea7ad42bf04580d316ad854b
Contents?: true
Size: 448 Bytes
Versions: 13
Compression:
Stored size: 448 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, :message => 'required' validates_uniqueness_of :name, :message => 'name already in use' validates_length_of :name, :maximum => 100, :message => '{{count}}-character limit' end
Version data entries
13 entries across 13 versions & 3 rubygems