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_circulation-0.0.37 app/models/item_has_use_restriction.rb
enju_circulation-0.0.36 app/models/item_has_use_restriction.rb
enju_circulation-0.0.35 app/models/item_has_use_restriction.rb
enju_circulation-0.0.34 app/models/item_has_use_restriction.rb
enju_circulation-0.0.33 app/models/item_has_use_restriction.rb
enju_circulation-0.0.32 app/models/item_has_use_restriction.rb
enju_circulation-0.0.31 app/models/item_has_use_restriction.rb
enju_circulation-0.0.30 app/models/item_has_use_restriction.rb
enju_circulation-0.0.29 app/models/item_has_use_restriction.rb
enju_circulation-0.0.28 app/models/item_has_use_restriction.rb
enju_circulation-0.0.27 app/models/item_has_use_restriction.rb
enju_circulation-0.0.26 app/models/item_has_use_restriction.rb
enju_circulation-0.0.25 app/models/item_has_use_restriction.rb
enju_circulation-0.0.24 app/models/item_has_use_restriction.rb
enju_circulation-0.0.23 app/models/item_has_use_restriction.rb
enju_bookmark-0.0.8 spec/dummy/app/models/item_has_use_restriction.rb
enju_circulation-0.0.22 app/models/item_has_use_restriction.rb
enju_circulation-0.0.21 app/models/item_has_use_restriction.rb
enju_circulation-0.0.20 app/models/item_has_use_restriction.rb
enju_circulation-0.0.19 app/models/item_has_use_restriction.rb