Sha256: afbbcf6d3e8a52a592e4595d4f1dbc33c147dc46535eb2433c841c6ef5eba866
Contents?: true
Size: 601 Bytes
Versions: 33
Compression:
Stored size: 601 Bytes
Contents
class UseRestriction < ActiveRecord::Base include MasterModel default_scope :order => 'position' scope :available, where(:name => ['Not For Loan', 'Limited Circulation, Normal Loan Period']) has_many :item_has_use_restrictions has_many :items, :through => :item_has_use_restrictions attr_protected :name end # == Schema Information # # Table name: use_restrictions # # 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
33 entries across 33 versions & 3 rubygems