Sha256: 2ee75dda79aa71677bda2321c248399832519bef18f231ec8939a003dfcbd499
Contents?: true
Size: 563 Bytes
Versions: 41
Compression:
Stored size: 563 Bytes
Contents
class ItemHasUseRestriction < ActiveRecord::Base belongs_to :item, :validate => true belongs_to :use_restriction, :validate => true def self.per_page 10 end validates_associated :item, :use_restriction validates_presence_of :item, :use_restriction 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
41 entries across 41 versions & 3 rubygems
Version | Path |
---|---|
enju_circulation-0.0.3 | app/models/item_has_use_restriction.rb |