@@ -60,7 +60,7 class Enumeration < ActiveRecord::Base | |||||
60 |
|
60 | |||
61 | def check_default |
|
61 | def check_default | |
62 | if is_default? && is_default_changed? |
|
62 | if is_default? && is_default_changed? | |
63 |
Enumeration.update_all({:is_default => false} |
|
63 | Enumeration.where({:type => type}).update_all({:is_default => false}) | |
64 | end |
|
64 | end | |
65 | end |
|
65 | end | |
66 |
|
66 |
General Comments 0
You need to be logged in to leave comments.
Login now