mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 21:46:35 +02:00
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
This commit is contained in:
@@ -153,7 +153,7 @@ class Query < ActiveRecord::Base
|
||||
]
|
||||
cattr_reader :available_columns
|
||||
|
||||
named_scope :visible, lambda {|*args|
|
||||
scope :visible, lambda {|*args|
|
||||
user = args.shift || User.current
|
||||
base = Project.allowed_to_condition(user, :view_issues, *args)
|
||||
user_id = user.logged? ? user.id : 0
|
||||
|
||||
Reference in New Issue
Block a user