summaryrefslogtreecommitdiffstats
path: root/app/models/issue_priority.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue_priority.rb')
-rw-r--r--app/models/issue_priority.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb
index d07baa6b6..95b120d7a 100644
--- a/app/models/issue_priority.rb
+++ b/app/models/issue_priority.rb
@@ -48,7 +48,7 @@ class IssuePriority < Enumeration
# Updates position_name for active priorities
# Called from migration 20121026003537_populate_enumerations_position_name
def self.compute_position_names
- priorities = where(:active => true).all.sort_by(&:position)
+ priorities = where(:active => true).sort_by(&:position)
if priorities.any?
default = priorities.detect(&:is_default?) || priorities[(priorities.size - 1) / 2]
priorities.each_with_index do |priority, index|