mirror of
https://github.com/redmine/redmine.git
synced 2026-01-06 15:42:57 +01:00
Rails4: replace deprecated find_all_by_* at GroupsController
git-svn-id: http://svn.redmine.org/redmine/trunk@12518 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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') }
|
||||
|
||||
Reference in New Issue
Block a user