]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at GroupsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jan 2014 05:55:52 +0000 (05:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jan 2014 05:55:52 +0000 (05:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12518 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/groups_controller.rb

index b2f9d6af57457cbb4bddb8d191d06e9eaedeecfb..f64e281141c21e28ca96a7db38f92a4601a2c663 100644 (file)
@@ -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') }