diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-02 19:09:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-02 19:09:42 +0000 |
commit | 5b21efd4a432263af5521a60d99785effad7f83b (patch) | |
tree | 41c3ecd1ce15b35eb501b50b4c9972fc878b4255 /app/controllers/watchers_controller.rb | |
parent | 1951c6a3fdc00853053c638b728c358931f8c017 (diff) | |
download | redmine-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.rb | 2 |
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 |