Sha256: c007c57f4d4714c8efe4aed1f22006b33606e97c1360655e2e332646d9771672
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
# # This is the donation represented in a user's cart. # This is NOT the persisted item that is attached to the order # class Donation < ActiveRecord::Base belongs_to :cart belongs_to :organization validates_numericality_of :amount, :greater_than => 0 validates_presence_of :organization def price amount end def self.fee 0 # $0 fee end def expired? false end def refundable? true end def exchangeable? false end def returnable? false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
artfully_ose-1.0.0.rc4 | app/models/donation.rb |
artfully_ose-1.0.0.rc3 | app/models/donation.rb |