Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-02 23:43:39 +0400
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-04 01:51:56 +0400
commit494ae87840bf719e5fb4094781cc1dfc179af463 (patch)
tree1006864b4695c0810f7005e742eed4f52b922abc /app/controllers/snippets_controller.rb
parent1319373d58c49eb96c1ec176f3057c2c31750b0e (diff)
Refactor discussion reply
Diffstat (limited to 'app/controllers/snippets_controller.rb')
-rw-r--r--app/controllers/snippets_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb
index 7324a4594eb..b0438222461 100644
--- a/app/controllers/snippets_controller.rb
+++ b/app/controllers/snippets_controller.rb
@@ -50,6 +50,8 @@ class SnippetsController < ProjectResourceController
def show
@note = @project.notes.new(noteable: @snippet)
+ @target_type = :snippet
+ @target_id = @snippet.id
end
def destroy