Sha256: 75c9096d8e3911430fb8b2c6ec892489b1c8f257b1c0ed7cff8ecb3b636e5f33
Contents?: true
Size: 722 Bytes
Versions: 29
Compression:
Stored size: 722 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 not null # updated_at :datetime not null #
Version data entries
29 entries across 29 versions & 1 rubygems