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