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

Version Path
enju_circulation-0.1.0.pre31 app/models/use_restriction.rb
enju_circulation-0.1.0.pre30 app/models/use_restriction.rb
enju_circulation-0.1.0.pre29 app/models/use_restriction.rb
enju_circulation-0.1.0.pre28 app/models/use_restriction.rb
enju_circulation-0.1.0.pre27 app/models/use_restriction.rb
enju_circulation-0.1.0.pre26 app/models/use_restriction.rb
enju_circulation-0.1.0.pre25 app/models/use_restriction.rb
enju_circulation-0.1.0.pre24 app/models/use_restriction.rb
enju_circulation-0.1.0.pre23 app/models/use_restriction.rb
enju_circulation-0.1.0.pre22 app/models/use_restriction.rb
enju_circulation-0.1.0.pre21 app/models/use_restriction.rb
enju_circulation-0.1.0.pre20 app/models/use_restriction.rb
enju_circulation-0.1.0.pre19 app/models/use_restriction.rb
enju_circulation-0.1.0.pre18 app/models/use_restriction.rb
enju_circulation-0.1.0.pre17 app/models/use_restriction.rb
enju_circulation-0.1.0.pre16 app/models/use_restriction.rb
enju_circulation-0.1.0.pre15 app/models/use_restriction.rb
enju_circulation-0.1.0.pre14 app/models/use_restriction.rb
enju_circulation-0.1.0.pre13 app/models/use_restriction.rb
enju_circulation-0.1.0.pre12 app/models/use_restriction.rb