summaryrefslogtreecommitdiffstats
path: root/app/models/issue_status.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-27 22:13:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-27 22:13:14 +0000
commit9a270c46c0aa3fbfd799a38122b115878840e5d8 (patch)
tree0177ac9dd94dbb2129efdc87733fd3de5d5aede7 /app/models/issue_status.rb
parente43448f6cae297b8364c0d0520daf8f0041649c7 (diff)
downloadredmine-9a270c46c0aa3fbfd799a38122b115878840e5d8.tar.gz
redmine-9a270c46c0aa3fbfd799a38122b115878840e5d8.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10887 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 95c7e4d51..fe1615706 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -29,7 +29,7 @@ class IssueStatus < ActiveRecord::Base
validates_inclusion_of :default_done_ratio, :in => 0..100, :allow_nil => true
scope :sorted, order("#{table_name}.position ASC")
- scope :named, lambda {|arg| where(["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip])}
+ scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)}
def update_default
IssueStatus.update_all({:is_default => false}, ['id <> ?', id]) if self.is_default?