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:
Jean-Philippe Lang committed 2012-12-02 19:09:42 +00:00
1 parent 1951c6a3fd
commit 5b21efd4a4
10 files changed
+29 -26

No files matched your search

+1 -1
View File
@@ -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