summaryrefslogtreecommitdiffstats
path: root/app/models/issue_status.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-26 23:51:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-26 23:51:10 +0000
commitd0d01d4e704b0d15dfd3ce2d5213ab8b5a6678fb (patch)
tree31a2f938e01ae8032d0e4c19d979f7df575d332e /app/models/issue_status.rb
parent71649ba2f137f3a48af031193af2b7f315519299 (diff)
downloadredmine-d0d01d4e704b0d15dfd3ce2d5213ab8b5a6678fb.tar.gz
redmine-d0d01d4e704b0d15dfd3ce2d5213ab8b5a6678fb.zip
model: replace Rails2 "named_scope" to Rails3 "scope"
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9537 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 600d0cbf4..d69aee079 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -28,7 +28,7 @@ class IssueStatus < ActiveRecord::Base
validates_length_of :name, :maximum => 30
validates_inclusion_of :default_done_ratio, :in => 0..100, :allow_nil => true
- named_scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}}
+ scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}}
def update_default
IssueStatus.update_all("is_default=#{connection.quoted_false}", ['id <> ?', id]) if self.is_default?