##// END OF EJS Templates
Rails4: replace deprecated Relation#update_all at Enumeration model...
Toshi MARUYAMA -
r12235:c4a9339e3f7e
parent child
Show More
@@ -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}, {:type => type})
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