[#4604] Clear and recalculate the #cost on Rate#destroy

This commit is contained in:
Eric Davis
2010-10-06 13:15:17 -07:00
parent f7b03b825f
commit c97979bd06
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ class Rate < ActiveRecord::Base
before_save :unlocked?
after_save :update_time_entry_cost_cache
before_destroy :unlocked?
after_destroy :update_time_entry_cost_cache
named_scope :history_for_user, lambda { |user, order|
{