Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10914 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
1951c6a3fd
commit
5b21efd4a4
10 files changed
+29
-26
No files matched your search
@@ -64,7 +64,7 @@ class WatchersController < ApplicationController
|
||||
end
|
||||
|
||||
def autocomplete_for_user
|
||||
@users = User.active.like(params[:q]).find(:all, :limit => 100)
|
||||
@users = User.active.like(params[:q]).limit(100).all
|
||||
if @watched
|
||||
@users -= @watched.watcher_users
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user