summaryrefslogtreecommitdiffstats
path: root/app/controllers/watchers_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 19:09:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 19:09:42 +0000
commit5b21efd4a432263af5521a60d99785effad7f83b (patch)
tree41c3ecd1ce15b35eb501b50b4c9972fc878b4255 /app/controllers/watchers_controller.rb
parent1951c6a3fdc00853053c638b728c358931f8c017 (diff)
downloadredmine-5b21efd4a432263af5521a60d99785effad7f83b.tar.gz
redmine-5b21efd4a432263af5521a60d99785effad7f83b.zip
Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10914 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/watchers_controller.rb')
-rw-r--r--app/controllers/watchers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index a0be20faf..278ca1bc5 100644
--- a/app/controllers/watchers_controller.rb
+++ b/app/controllers/watchers_controller.rb
@@ -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