diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 13:32:43 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 13:32:43 +0200 |
commit | f7e7dc7ebbdac2a45d528d1f9c19055febd0bede (patch) | |
tree | 28162a6225926157c540e8870b289a1bacd46a5b /app/controllers/projects/snippets_controller.rb | |
parent | 73af33e4b1aed1cbde3644a0e94ab2d40340e31b (diff) | |
download | gitlab-ce-f7e7dc7ebbdac2a45d528d1f9c19055febd0bede.tar.gz |
Make note anchors actually work
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/snippets_controller.rb')
-rw-r--r-- | app/controllers/projects/snippets_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |