Sha256: cc5f79fca03fded9b21f5030a92608e7ba858b3d921989c12d5607be01f4119a
Contents?: true
Size: 467 Bytes
Versions: 10
Compression:
Stored size: 467 Bytes
Contents
class Donate < ActiveRecord::Base attr_accessible :patron_id, :item_id belongs_to :patron, :validate => true belongs_to :item, :validate => true validates_associated :patron, :item validates_presence_of :patron, :item end # == Schema Information # # Table name: donates # # id :integer not null, primary key # patron_id :integer not null # item_id :integer not null # created_at :datetime # updated_at :datetime #
Version data entries
10 entries across 10 versions & 1 rubygems