diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-21 15:15:49 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 12:29:36 +0200 |
commit | 27af24c1c951385bccd298c98044d57ff22ccd1c (patch) | |
tree | 32ffe57d8e73e21df946da1fff6861d0eda5c77e /app/controllers/projects/commit_controller.rb | |
parent | 8ed7ac9d443563a62a6aa03a2ec72b9fcb0d2df1 (diff) | |
download | gitlab-ce-27af24c1c951385bccd298c98044d57ff22ccd1c.tar.gz |
No longer needed to pass project argument to commit methods.
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index 35df421e09d..78d42d695b6 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -10,11 +10,11 @@ class Projects::CommitController < Projects::ApplicationController def show return git_not_found! unless @commit - @line_notes = commit.notes(@project).inline + @line_notes = commit.notes.inline @diffs = @commit.diffs @note = @project.build_commit_note(commit) - @notes_count = commit.notes(@project).count - @notes = commit.notes(@project).not_inline.fresh + @notes_count = commit.notes.count + @notes = commit.notes.not_inline.fresh @noteable = @commit @comments_allowed = @reply_allowed = true @comments_target = { |