Sha256: 3de1cf0e371bada6ce904c38d085ce0ed3b94b478bea70de3bf724ad182585f3
Contents?: true
Size: 699 Bytes
Versions: 16
Compression:
Stored size: 699 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 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
16 entries across 16 versions & 1 rubygems