diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-02 20:43:39 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-03 22:51:56 +0100 |
commit | 494ae87840bf719e5fb4094781cc1dfc179af463 (patch) | |
tree | 1006864b4695c0810f7005e742eed4f52b922abc /app/controllers/commit_controller.rb | |
parent | 1319373d58c49eb96c1ec176f3057c2c31750b0e (diff) | |
download | gitlab-ce-494ae87840bf719e5fb4094781cc1dfc179af463.tar.gz |
Refactor discussion reply
Diffstat (limited to 'app/controllers/commit_controller.rb')
-rw-r--r-- | app/controllers/commit_controller.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb index ebc27772f9a..4fbfe205d3f 100644 --- a/app/controllers/commit_controller.rb +++ b/app/controllers/commit_controller.rb @@ -13,10 +13,14 @@ class CommitController < ProjectResourceController @commit = result[:commit] git_not_found! unless @commit - @suppress_diff = result[:suppress_diff] - @note = result[:note] - @line_notes = result[:line_notes] - @notes_count = result[:notes_count] + @suppress_diff = result[:suppress_diff] + + @note = result[:note] + @line_notes = result[:line_notes] + @notes_count = result[:notes_count] + @target_type = :commit + @target_id = @commit.id + @comments_allowed = @reply_allowed = true @comments_target = { noteable_type: 'Commit', noteable_id: @commit.id } |