Sha256: 76257fd0e6d6645fb86e3be796e197343ea15231140aeea271a3fbe65ee0a5f6
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_subject-0.1.0.pre27 | app/models/subject_type.rb |
enju_subject-0.1.0.pre26 | app/models/subject_type.rb |