Sha256: 8d1fb8f931c369b66d03aa94fa0a755a9769626e4a5036e9a0ae3c8671f95eaf
Contents?: true
Size: 641 Bytes
Versions: 36
Compression:
Stored size: 641 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 # updated_at :datetime #
Version data entries
36 entries across 36 versions & 2 rubygems