Sha256: 1af702ba50d7b1bb226e46ae9801b7915fcfc5860314a3f07c59bf7ba40ef253
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
class CarrierType < ActiveRecord::Base include MasterModel default_scope { order("carrier_types.position") } has_many :manifestations def mods_type case name when 'volume' 'text' else # TODO: その他のタイプ 'software, multimedia' end end end # == Schema Information # # Table name: carrier_types # # id :integer not null, primary key # name :string(255) not null # display_name :text # note :text # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_biblio-0.2.0.beta.2 | app/models/carrier_type.rb |
enju_biblio-0.2.0.beta.1 | app/models/carrier_type.rb |