Prevent Rates from being destroyed if they are locked. #1919
This commit is contained in:
1 parent
3ffb31fafc
commit
0e8bd2153c
2 files changed
+22
No files matched your search
@@ -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|
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user