app/models/dated_cost.rb in e9_crm-0.1.21 vs app/models/dated_cost.rb in e9_crm-0.1.22
- old
+ new
@@ -2,9 +2,10 @@
# Encapulates a Cost and a Date, used to track costs by
# date so sums for date ranges can be generated.
#
class DatedCost < ActiveRecord::Base
include E9Rails::ActiveRecord::Initialization
+ include E9::ActiveRecord::TimeScopes
money_columns :cost
belongs_to :costable, :polymorphic => true
validates :date, :date => true
validates :cost, :numericality => true