Prevent Rates from being destroyed if they are locked. #1919

This commit is contained in:
Eric Davis committed 2009-01-16 15:33:42 -08:00
1 parent 3ffb31fafc
commit 0e8bd2153c
2 files changed
+22

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ class Rate < ActiveRecord::Base
validates_presence_of :date_in_effect
before_save :unlocked?
before_destroy :unlocked?
named_scope :history_for_user, lambda { |user|
{