Sha256: 2de33ed54619e039ef8d2f78076910ae1cb80131cbeab589091ef48d8d9a5b9f
Contents?: true
Size: 738 Bytes
Versions: 61
Compression:
Stored size: 738 Bytes
Contents
class CarrierType < ActiveRecord::Base include MasterModel default_scope :order => "position" has_many :manifestations if defined?(EnjuCirculation) has_many :carrier_type_has_checkout_types, :dependent => :destroy has_many :checkout_types, :through => :carrier_type_has_checkout_types end def mods_type case name when 'print' '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
61 entries across 61 versions & 3 rubygems