summaryrefslogtreecommitdiffstats
path: root/app/models/issue_status.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-29 21:49:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-29 21:49:33 +0000
commit522bebe5edbe302ab3e51a64e163877c3ca5eab6 (patch)
treeb130ef847cf1e3563bf4409b8d0e9c6d6781b93d /app/models/issue_status.rb
parent47e74dc689811a1170db4df07ea64d1176ed5a52 (diff)
downloadredmine-522bebe5edbe302ab3e51a64e163877c3ca5eab6.tar.gz
redmine-522bebe5edbe302ab3e51a64e163877c3ca5eab6.zip
Order scopes cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13526 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r--app/models/issue_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb
index b9fccdb99..76c5ef65b 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -30,7 +30,7 @@ class IssueStatus < ActiveRecord::Base
validates_inclusion_of :default_done_ratio, :in => 0..100, :allow_nil => true
attr_protected :id
- scope :sorted, lambda { order("#{table_name}.position ASC") }
+ scope :sorted, lambda { order(:position) }
scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)}
def update_default