Sha256: cf03422e24235b99e982ecf023be03b8150e34100bddee06c9264aeeee2d9b3b

Contents?: true

Size: 685 Bytes

Versions: 7

Compression:

Stored size: 685 Bytes

Contents

class ItemHasUseRestriction < ActiveRecord::Base
  attr_accessible :item_id, :use_restriction_id
  belongs_to :item, :validate => true
  belongs_to :use_restriction, :validate => true
  accepts_nested_attributes_for :use_restriction

  validates_associated :item, :use_restriction
  validates_presence_of :use_restriction
  validates_presence_of :item, :on => :update

  paginates_per 10
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

7 entries across 7 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre7 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre6 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre5 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre4 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre3 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre2 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre app/models/item_has_use_restriction.rb