Rails4: replace deprecated find_all_by_* at RepositoriesController#committers
git-svn-id: http://svn.redmine.org/redmine/trunk@12615 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
073b403bd9
commit
a3f0dae9c4
|
@ -94,7 +94,7 @@ class RepositoriesController < ApplicationController
|
||||||
@committers = @repository.committers
|
@committers = @repository.committers
|
||||||
@users = @project.users
|
@users = @project.users
|
||||||
additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id)
|
additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id)
|
||||||
@users += User.find_all_by_id(additional_user_ids) unless additional_user_ids.empty?
|
@users += User.where(:id => additional_user_ids).all unless additional_user_ids.empty?
|
||||||
@users.compact!
|
@users.compact!
|
||||||
@users.sort!
|
@users.sort!
|
||||||
if request.post? && params[:committers].is_a?(Hash)
|
if request.post? && params[:committers].is_a?(Hash)
|
||||||
|
|
Loading…
Reference in New Issue