Sha256: b0ae5d93a9aa99d78efaa8704ddf4eb792e83382656b7a92e14f6e0127d3c901

Contents?: true

Size: 582 Bytes

Versions: 18

Compression:

Stored size: 582 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         not null
#  updated_at   :datetime         not null
#

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 app/models/identifier_type.rb
enju_biblio-0.1.0.pre54 app/models/identifier_type.rb
enju_biblio-0.1.0.pre53 app/models/identifier_type.rb
enju_biblio-0.1.0.pre52 app/models/identifier_type.rb
enju_biblio-0.1.0.pre51 app/models/identifier_type.rb
enju_biblio-0.1.0.pre50 app/models/identifier_type.rb
enju_biblio-0.1.0.pre49 app/models/identifier_type.rb
enju_biblio-0.1.0.pre48 app/models/identifier_type.rb
enju_biblio-0.1.0.pre47 app/models/identifier_type.rb
enju_biblio-0.1.0.pre46 app/models/identifier_type.rb
enju_biblio-0.1.0.pre45 app/models/identifier_type.rb
enju_biblio-0.1.0.pre44 app/models/identifier_type.rb
enju_biblio-0.1.0.pre43 app/models/identifier_type.rb
enju_biblio-0.1.0.pre42 app/models/identifier_type.rb
enju_biblio-0.1.0.pre41 app/models/identifier_type.rb
enju_biblio-0.1.0.pre40 app/models/identifier_type.rb
enju_biblio-0.1.0.pre39 app/models/identifier_type.rb
enju_biblio-0.1.0.pre38 app/models/identifier_type.rb