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

Version Path
enju_circulation-0.0.43 app/models/use_restriction.rb
enju_circulation-0.0.42 app/models/use_restriction.rb
enju_circulation-0.0.41 app/models/use_restriction.rb
enju_circulation-0.0.40 app/models/use_restriction.rb
enju_circulation-0.0.39 app/models/use_restriction.rb
enju_circulation-0.0.38 app/models/use_restriction.rb
enju_circulation-0.0.37 app/models/use_restriction.rb
enju_circulation-0.0.36 app/models/use_restriction.rb
enju_circulation-0.0.35 app/models/use_restriction.rb
enju_circulation-0.0.34 app/models/use_restriction.rb
enju_circulation-0.0.33 app/models/use_restriction.rb
enju_circulation-0.0.32 app/models/use_restriction.rb
enju_circulation-0.0.31 app/models/use_restriction.rb
enju_circulation-0.0.30 app/models/use_restriction.rb