Mercurial > hg > soundsoftware-site
comparison app/models/enumeration.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
58 nil | 58 nil |
59 end | 59 end |
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 |
67 # Overloaded on concrete classes | 67 # Overloaded on concrete classes |
68 def objects_count | 68 def objects_count |