From f7e7dc7ebbdac2a45d528d1f9c19055febd0bede Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 25 Dec 2013 13:32:43 +0200 Subject: Make note anchors actually work Signed-off-by: Dmitriy Zaporozhets --- app/controllers/projects/snippets_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/projects/snippets_controller.rb') diff --git a/app/controllers/projects/snippets_controller.rb b/app/controllers/projects/snippets_controller.rb index dd0c1a57089..4db0bc34b53 100644 --- a/app/controllers/projects/snippets_controller.rb +++ b/app/controllers/projects/snippets_controller.rb @@ -48,7 +48,8 @@ class Projects::SnippetsController < Projects::ApplicationController def show @note = @project.notes.new(noteable: @snippet) - @target_type = :snippet + @notes = @snippet.notes.fresh + @target_type = 'Snippet' @target_id = @snippet.id end -- cgit v1.2.1