Mercurial > hg > soundsoftware-site
comparison app/controllers/repositories_controller.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children | a1bdbf8a87d5 |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
92 | 92 |
93 def committers | 93 def committers |
94 @committers = @repository.committers | 94 @committers = @repository.committers |
95 @users = @project.users | 95 @users = @project.users |
96 additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id) | 96 additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id) |
97 @users += User.find_all_by_id(additional_user_ids) unless additional_user_ids.empty? | 97 @users += User.where(:id => additional_user_ids).all unless additional_user_ids.empty? |
98 @users.compact! | 98 @users.compact! |
99 @users.sort! | 99 @users.sort! |
100 if request.post? && params[:committers].is_a?(Hash) | 100 if request.post? && params[:committers].is_a?(Hash) |
101 # Build a hash with repository usernames as keys and corresponding user ids as values | 101 # Build a hash with repository usernames as keys and corresponding user ids as values |
102 @repository.committer_ids = params[:committers].values.inject({}) {|h, c| h[c.first] = c.last; h} | 102 @repository.committer_ids = params[:committers].values.inject({}) {|h, c| h[c.first] = c.last; h} |