Sha256: 817d5f8d745430057ef871c4c5d45eac638d8d6bcc7bc634b96267e38cf4c287
Contents?: true
Size: 677 Bytes
Versions: 24
Compression:
Stored size: 677 Bytes
Contents
class UseRestriction < ActiveRecord::Base attr_accessible :name, :display_name, :note 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 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 not null # updated_at :datetime not null #
Version data entries
24 entries across 24 versions & 1 rubygems