Sha256: bea722edae9784a6a753ae820597abcf6a701a69c8f152426ffb72df1e2b3823
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
module Bookkeeper class Purchase < ActiveRecord::Base mount_uploader :receipt, ReceiptUploader attr_accessible :description, :purchase_date, :title, :warranty_duration, :receipt validates_presence_of :title validates_numericality_of :warranty_duration, allow_nil: true validates_date :purchase_date, allow_nil: true, allow_blank: true default_scope order('created_at DESC') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bookkeeper-0.0.4 | app/models/bookkeeper/purchase.rb |
bookkeeper-0.0.3 | app/models/bookkeeper/purchase.rb |
bookkeeper-0.0.2 | app/models/bookkeeper/purchase.rb |