Sha256: c9de8fc20d997b9ff6995d712ce74963190c81240e4bd5f43c82d2ca05072a0b
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 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 :item, :use_restriction def self.per_page 10 end 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
4 entries across 4 versions & 1 rubygems