diff options
author | ZJ van de Weg <zegerjan@gitlab.com> | 2016-05-25 22:07:36 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-06-06 12:03:39 +0300 |
commit | 2f9c2149a38e8a4067cb50c1cd1bbb1e72c263b3 (patch) | |
tree | 89b1f8d0cf86a328d8a8d276b79e5321fbdd43dc /app/controllers/projects/notes_controller.rb | |
parent | fc809d689a03e69c581c1bb8ed0cf246953a7c08 (diff) |
Backend awardables on comments
Diffstat (limited to 'app/controllers/projects/notes_controller.rb')
-rw-r--r-- | app/controllers/projects/notes_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb index c205474e999..836f79ff080 100644 --- a/app/controllers/projects/notes_controller.rb +++ b/app/controllers/projects/notes_controller.rb @@ -1,4 +1,6 @@ class Projects::NotesController < Projects::ApplicationController + include ToggleAwardEmoji + # Authorize before_action :authorize_read_note! before_action :authorize_create_note!, only: [:create] @@ -61,6 +63,7 @@ class Projects::NotesController < Projects::ApplicationController def note @note ||= @project.notes.find(params[:id]) end + alias_method :awardable, :note def note_to_html(note) render_to_string( |