diff options
author | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
commit | 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch) | |
tree | c3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /app/controllers/projects/notes_controller.rb | |
parent | f6453eca992a9c142268e78ac782cef98110d183 (diff) | |
download | gitlab-ce-tc-standard-gem.tar.gz |
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I
decided to try https://github.com/testdouble/standard on our codebase.
It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'app/controllers/projects/notes_controller.rb')
-rw-r--r-- | app/controllers/projects/notes_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb index 3152a38fd8e..015de870b16 100644 --- a/app/controllers/projects/notes_controller.rb +++ b/app/controllers/projects/notes_controller.rb @@ -32,7 +32,7 @@ class Projects::NotesController < Projects::ApplicationController else render json: { resolved_by: note.resolved_by.try(:name), - discussion_headline_html: (view_to_html_string('discussions/_headline', discussion: discussion) if discussion) + discussion_headline_html: (view_to_html_string("discussions/_headline", discussion: discussion) if discussion), } end end @@ -48,7 +48,7 @@ class Projects::NotesController < Projects::ApplicationController render_json_with_notes_serializer else render json: { - discussion_headline_html: (view_to_html_string('discussions/_headline', discussion: discussion) if discussion) + discussion_headline_html: (view_to_html_string("discussions/_headline", discussion: discussion) if discussion), } end end @@ -65,7 +65,7 @@ class Projects::NotesController < Projects::ApplicationController @note ||= @project.notes.find(params[:id]) end - alias_method :awardable, :note + alias awardable note def finder_params params.merge(last_fetched_at: last_fetched_at, notes_filter: notes_filter) @@ -86,6 +86,6 @@ class Projects::NotesController < Projects::ApplicationController end def whitelist_query_limiting - Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42383') + Gitlab::QueryLimiting.whitelist("https://gitlab.com/gitlab-org/gitlab-ce/issues/42383") end end |