Sha256: 2ee75dda79aa71677bda2321c248399832519bef18f231ec8939a003dfcbd499

Contents?: true

Size: 563 Bytes

Versions: 41

Compression:

Stored size: 563 Bytes

Contents

class ItemHasUseRestriction < ActiveRecord::Base
  belongs_to :item, :validate => true
  belongs_to :use_restriction, :validate => true

  def self.per_page
    10
  end

  validates_associated :item, :use_restriction
  validates_presence_of :item, :use_restriction
end

# == Schema Information
#
# Table name: item_has_use_restrictions
#
#  id                 :integer         not null, primary key
#  item_id            :integer         not null
#  use_restriction_id :integer         not null
#  created_at         :datetime
#  updated_at         :datetime
#

Version data entries

41 entries across 41 versions & 3 rubygems

Version Path
enju_standalone_interface-0.0.1 spec/dummy/app/models/item_has_use_restriction.rb
enju_circulation-0.0.18 app/models/item_has_use_restriction.rb
enju_circulation-0.0.17 app/models/item_has_use_restriction.rb
enju_circulation-0.0.16 app/models/item_has_use_restriction.rb
enju_circulation-0.0.15 app/models/item_has_use_restriction.rb
enju_bookmark-0.0.7 spec/dummy/app/models/item_has_use_restriction.rb
enju_circulation-0.0.14 app/models/item_has_use_restriction.rb
enju_bookmark-0.0.6 spec/dummy/app/models/item_has_use_restriction.rb
enju_bookmark-0.0.5 spec/dummy/app/models/item_has_use_restriction.rb
enju_circulation-0.0.13 app/models/item_has_use_restriction.rb
enju_circulation-0.0.12 app/models/item_has_use_restriction.rb
enju_circulation-0.0.11 app/models/item_has_use_restriction.rb
enju_circulation-0.0.10 app/models/item_has_use_restriction.rb
enju_circulation-0.0.9 app/models/item_has_use_restriction.rb
enju_circulation-0.0.8 app/models/item_has_use_restriction.rb
enju_circulation-0.0.7 app/models/item_has_use_restriction.rb
enju_bookmark-0.0.4 spec/dummy/app/models/item_has_use_restriction.rb
enju_circulation-0.0.6 app/models/item_has_use_restriction.rb
enju_bookmark-0.0.3 spec/dummy/app/models/item_has_use_restriction.rb
enju_circulation-0.0.4 app/models/item_has_use_restriction.rb