summaryrefslogtreecommitdiffstats
path: root/app/models/journal.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/journal.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/journal.rb')
-rw-r--r--app/models/journal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index fe8a432b6..73db1f62d 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -37,7 +37,7 @@ class Journal < ActiveRecord::Base
:conditions => "#{Journal.table_name}.journalized_type = 'Issue' AND" +
" (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')"}
- named_scope :visible, lambda {|*args| {
+ scope :visible, lambda {|*args| {
:include => {:issue => :project},
:conditions => Issue.visible_condition(args.shift || User.current, *args)
}}