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