Sha256: 678d9bd75b57ed88fbc8b836b83fb9524feb7f239e4ddd4d1f194341b0d3733a
Contents?: true
Size: 445 Bytes
Versions: 15
Compression:
Stored size: 445 Bytes
Contents
class PagePart < ActiveRecord::Base # Default Order default_scope :order => 'name' # Associations belongs_to :page # Validations validates_presence_of :name validates_length_of :name, :maximum => 100 validates_length_of :filter_id, :maximum => 25, :allow_nil => true object_id_attr :filter, TextFilter def after_initialize self.filter_id ||= Radiant::Config['defaults.page.filter'] if new_record? end end
Version data entries
15 entries across 15 versions & 1 rubygems