diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-05 20:29:41 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-05 20:29:41 -0800 |
commit | 8952fc015fae476a20051c01cf4217d82d30c83d (patch) | |
tree | 07f05c55ff385ce176e148116a04f7abb3a9558a /app/controllers/projects/commits_controller.rb | |
parent | c5be267e40c0ba05c2a7de6a71d154f1b5161160 (diff) | |
download | gitlab-ce-8952fc015fae476a20051c01cf4217d82d30c83d.tar.gz |
Apply default scope to labels and remove one for notes
Diffstat (limited to 'app/controllers/projects/commits_controller.rb')
-rw-r--r-- | app/controllers/projects/commits_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commits_controller.rb b/app/controllers/projects/commits_controller.rb index 0a85c36a758..b133afe44b5 100644 --- a/app/controllers/projects/commits_controller.rb +++ b/app/controllers/projects/commits_controller.rb @@ -13,7 +13,7 @@ class Projects::CommitsController < Projects::ApplicationController @commits = @repo.commits(@ref, @path, @limit, @offset) @note_counts = Note.where(commit_id: @commits.map(&:id)). - group(:commit_id).count + group(:commit_id).count respond_to do |format| format.html |