diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 22:32:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 22:32:48 +0200 |
commit | f554aa38d504387aae09d4000bd208078e1c3c1b (patch) | |
tree | 6ec8d7413037ce2adcbb786285f65f4264fcc7df /app/controllers/projects/snippets_controller.rb | |
parent | 48c682b52f61d96ef14ca9168b5f2678385dd626 (diff) | |
download | gitlab-ce-f554aa38d504387aae09d4000bd208078e1c3c1b.tar.gz |
Update commentable controllers with new note vars
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, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/snippets_controller.rb b/app/controllers/projects/snippets_controller.rb index 4db0bc34b53..f93f2d5f9bb 100644 --- a/app/controllers/projects/snippets_controller.rb +++ b/app/controllers/projects/snippets_controller.rb @@ -49,8 +49,7 @@ class Projects::SnippetsController < Projects::ApplicationController def show @note = @project.notes.new(noteable: @snippet) @notes = @snippet.notes.fresh - @target_type = 'Snippet' - @target_id = @snippet.id + @noteable = @snippet end def destroy |