Sha256: 182df909f6163c19d81ec66b0c65a5ac5447dc7947e3e4cae77d824d7aa70240
Contents?: true
Size: 635 Bytes
Versions: 12
Compression:
Stored size: 635 Bytes
Contents
class ItemHasUseRestriction < ApplicationRecord belongs_to :item, validate: true belongs_to :use_restriction, validate: true accepts_nested_attributes_for :use_restriction validates_associated :item, :use_restriction validates :use_restriction, presence: true validates :item, presence: { 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
12 entries across 12 versions & 1 rubygems