Sha256: 8bb331fe86d63bd72b43da4d3aa2f6d851db299b794d8283e5489b7fb1e4a810

Contents?: true

Size: 533 Bytes

Versions: 11

Compression:

Stored size: 533 Bytes

Contents

class PagePart < ActiveRecord::Base
  
  # Default Order
  order_by 'name'
  
  # Associations
  belongs_to :page
  
  # Validations
  validates_presence_of :name, :message => 'required'
  validates_length_of :name, :maximum => 100, :message => '%d-character limit'
  validates_length_of :filter_id, :maximum => 25, :allow_nil => true, :message => '%d-character limit'
  validates_numericality_of :id, :page_id, :allow_nil => true, :only_integer => true, :message => 'must be a number'
  
  object_id_attr :filter, TextFilter
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-0.6.1 app/models/page_part.rb
radiant-0.6.0 app/models/page_part.rb
radiant-0.6.2 app/models/page_part.rb
radiant-0.6.3 app/models/page_part.rb
radiant-0.6.5.1 app/models/page_part.rb
radiant-0.6.4 app/models/page_part.rb
radiant-0.6.5 app/models/page_part.rb
radiant-0.6.7 app/models/page_part.rb
radiant-0.6.6 app/models/page_part.rb
radiant-0.6.9 app/models/page_part.rb
radiant-0.6.8 app/models/page_part.rb