Sha256: cddb44e0db6df71f5d86a467c3d541dc334d20a075fa9a8b194affbe55dd12d8
Contents?: true
Size: 562 Bytes
Versions: 8
Compression:
Stored size: 562 Bytes
Contents
class SubjectType < ActiveRecord::Base attr_accessible :name, :display_name, :note include MasterModel default_scope :order => "position" has_many :subjects validates :name, :format => {:with => /\A[0-9A-Za-z][0-9a-z_\-]*[0-9a-z]\Z/} end # == Schema Information # # Table name: subject_types # # id :integer not null, primary key # name :string(255) not null # display_name :text # note :text # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
8 entries across 8 versions & 1 rubygems