Sha256: d8c5712cf8e23345b199e97eb5efcb170c1d6b19b621ec7385532b909cf2b1a2

Contents?: true

Size: 630 Bytes

Versions: 21

Compression:

Stored size: 630 Bytes

Contents

class ItemHasUseRestriction < ActiveRecord::Base
  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

21 entries across 21 versions & 1 rubygems

Version Path
enju_circulation-0.2.5 app/models/item_has_use_restriction.rb
enju_circulation-0.2.4 app/models/item_has_use_restriction.rb
enju_circulation-0.2.3 app/models/item_has_use_restriction.rb
enju_circulation-0.2.2 app/models/item_has_use_restriction.rb
enju_circulation-0.2.1 app/models/item_has_use_restriction.rb
enju_circulation-0.2.0 app/models/item_has_use_restriction.rb
enju_circulation-0.2.0.beta.4 app/models/item_has_use_restriction.rb
enju_circulation-0.2.0.beta.3 app/models/item_has_use_restriction.rb
enju_circulation-0.2.0.beta.2 app/models/item_has_use_restriction.rb
enju_circulation-0.2.0.beta.1 app/models/item_has_use_restriction.rb
enju_circulation-0.1.2 app/models/item_has_use_restriction.rb
enju_circulation-0.1.1 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre49 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre48 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre47 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre46 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre45 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre44 app/models/item_has_use_restriction.rb
enju_circulation-0.1.0.pre43 app/models/item_has_use_restriction.rb