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

Version Path
enju_circulation-0.1.0.pre7 app/models/use_restriction.rb
enju_circulation-0.1.0.pre6 app/models/use_restriction.rb
enju_circulation-0.1.0.pre5 app/models/use_restriction.rb
enju_circulation-0.1.0.pre4 app/models/use_restriction.rb
enju_circulation-0.1.0.pre3 app/models/use_restriction.rb
enju_circulation-0.1.0.pre2 app/models/use_restriction.rb
enju_circulation-0.1.0.pre app/models/use_restriction.rb
enju_circulation-0.0.71 app/models/use_restriction.rb
enju_circulation-0.0.70 app/models/use_restriction.rb
enju_circulation-0.0.69 app/models/use_restriction.rb
enju_circulation-0.0.68 app/models/use_restriction.rb
enju_circulation-0.0.67 app/models/use_restriction.rb
enju_circulation-0.0.66 app/models/use_restriction.rb
enju_circulation-0.0.65 app/models/use_restriction.rb
enju_circulation-0.0.64 app/models/use_restriction.rb
enju_circulation-0.0.63 app/models/use_restriction.rb
enju_circulation-0.0.62 app/models/use_restriction.rb
enju_circulation-0.0.61 app/models/use_restriction.rb
enju_circulation-0.0.60 app/models/use_restriction.rb
enju_circulation-0.0.59 app/models/use_restriction.rb