Skip to content

Commit 0a744a0

Browse files
author
root
committed
Add missing includes
1 parent b4b7a4d commit 0a744a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: app/reports/repository_contributors_stats.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def commits_per_author_with_aliases
7070
# registered_committers = [ committer,... ]
7171
registered_committers = []
7272
user_committer_mapping = {}
73-
Changeset.select('changesets.committer, changesets.user_id').where('repository_id = ? and user_id IS NOT NULL', repository.id).group(:committer, :user_id).each do |x|
73+
Changeset.select('changesets.committer, changesets.user_id')
74+
.where('repository_id = ? and user_id IS NOT NULL', repository.id)
75+
.group(:committer, :user_id)
76+
.includes(:user).each do |x|
7477
name = "#{x.user.firstname} #{x.user.lastname}"
7578
registered_committers << x.committer
7679
user_committer_mapping[[name, x.user.mail]] ||= []

0 commit comments

Comments
 (0)