summaryrefslogtreecommitdiffstats
path: root/app/models/enumeration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/enumeration.rb')
-rw-r--r--app/models/enumeration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb
index 7e8bf5a81..128b8a9bc 100644
--- a/app/models/enumeration.rb
+++ b/app/models/enumeration.rb
@@ -60,7 +60,7 @@ class Enumeration < ActiveRecord::Base
def check_default
if is_default? && is_default_changed?
- Enumeration.update_all({:is_default => false}, {:type => type})
+ Enumeration.where({:type => type}).update_all({:is_default => false})
end
end