summaryrefslogtreecommitdiffstats
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 05:55:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 05:55:52 +0000
commitd731c036fb72bfc770c4bbdb548a587eddfcb68d (patch)
treeaddbe49d65466b914678fc280f1793956b24aa43 /app/controllers/groups_controller.rb
parent251e3cc7fa4966a919c1a845d5942f5649509ffc (diff)
downloadredmine-d731c036fb72bfc770c4bbdb548a587eddfcb68d.tar.gz
redmine-d731c036fb72bfc770c4bbdb548a587eddfcb68d.zip
Rails4: replace deprecated find_all_by_* at GroupsController
git-svn-id: http://svn.redmine.org/redmine/trunk@12518 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index b2f9d6af5..f64e28114 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -90,7 +90,7 @@ class GroupsController < ApplicationController
end
def add_users
- @users = User.find_all_by_id(params[:user_id] || params[:user_ids])
+ @users = User.where(:id => (params[:user_id] || params[:user_ids])).all
@group.users << @users if request.post?
respond_to do |format|
format.html { redirect_to edit_group_path(@group, :tab => 'users') }