Sha256: f482db606e1d2df689cbe772fb67576caf202c311239f4ea0064fd59a3ba0321
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
class IdentifierType < ActiveRecord::Base attr_accessible :display_name, :name, :note, :position include MasterModel default_scope { order('identifier_types.position') } has_many :identifiers validates :name, format: { with: /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/ } end # == Schema Information # # Table name: identifier_types # # id :integer not null, primary key # name :string(255) # display_name :text # note :text # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_biblio-0.1.0.pre63 | app/models/identifier_type.rb |