app/models/dated_cost.rb in e9_crm-0.1.18 vs app/models/dated_cost.rb in e9_crm-0.1.19
- old
+ new
@@ -6,10 +6,10 @@
include E9Rails::ActiveRecord::Initialization
money_columns :cost
belongs_to :costable, :polymorphic => true
validates :date, :date => true
- validates :cost, :numericality => { :greater_than => 0 }
+ validates :cost, :numericality => true
attr_accessor :temp_id
def self.default_scope
order('dated_costs.created_at ASC')