diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-06-18 08:15:53 +0300 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-08-21 01:00:00 +0300 |
commit | 330cbddec30840a72a52aade383286e58545ce98 (patch) | |
tree | 83b7c2044e738036e08e21ac38dae013cf60a3ac /app/controllers | |
parent | 80c57bf6d13d6025a9568afb9cca36c279fac593 (diff) |
Renaming AwardedEmojiFinder to a Service
This finder class acts more as a service, as it only returns mapped
data.
Renaming this class allows us to create a new AwardEmojiFinder without
the ambiguity of there being two similarly-named finders.
https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/autocomplete_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb index f111c7ca8cc..30a567c3bef 100644 --- a/app/controllers/autocomplete_controller.rb +++ b/app/controllers/autocomplete_controller.rb @@ -36,7 +36,7 @@ class AutocompleteController < ApplicationController end def award_emojis - render json: AwardedEmojiFinder.new(current_user).execute + render json: AwardEmojis::CollectUserEmojiService.new(current_user).execute end def merge_request_target_branches |