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.0.58 app/models/use_restriction.rb
enju_circulation-0.0.57 app/models/use_restriction.rb
enju_circulation-0.0.56 app/models/use_restriction.rb
enju_circulation-0.0.55 app/models/use_restriction.rb
enju_circulation-0.0.54 app/models/use_restriction.rb
enju_circulation-0.0.53 app/models/use_restriction.rb
enju_circulation-0.0.52 app/models/use_restriction.rb
enju_circulation-0.0.51 app/models/use_restriction.rb
enju_circulation-0.0.50 app/models/use_restriction.rb
enju_circulation-0.0.49 app/models/use_restriction.rb
enju_circulation-0.0.48 app/models/use_restriction.rb
enju_circulation-0.0.47 app/models/use_restriction.rb
enju_circulation-0.0.46 app/models/use_restriction.rb
enju_bookmark-0.0.17 spec/dummy/app/models/use_restriction.rb
enju_bookmark-0.0.16 spec/dummy/app/models/use_restriction.rb
enju_circulation-0.0.45 app/models/use_restriction.rb