Sha256: 2fc43e0b415ec79918375965d5e0e4e93c26ed0f974b891dfb97d2ba438618fc
Contents?: true
Size: 618 Bytes
Versions: 14
Compression:
Stored size: 618 Bytes
Contents
class UseRestriction < ActiveRecord::Base include MasterModel default_scope :order => 'use_restrictions.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
14 entries across 14 versions & 1 rubygems