summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2019-03-06 13:33:06 -0600
committerMario de la Ossa <mariodelaossa@gmail.com>2019-03-28 12:14:18 -0600
commit8fb76e4d1bab37ba8aa4fbdad3a845ec4506ce69 (patch)
treee5575f60308d6024ff100872f7cebba3a9d65d6c /app/helpers
parent12818c20430bec5b54903e19ff78b0575c61f05c (diff)
downloadgitlab-ce-8fb76e4d1bab37ba8aa4fbdad3a845ec4506ce69.tar.gz
Backport of 1607-elastic_feature_flag_per_groupce-1607-elastic_feature_flag_per_group
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/search_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index 0ee76a51f7d..08a723c320f 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -45,6 +45,10 @@ module SearchHelper
filename
end
+ def search_service
+ @search_service ||= ::SearchService.new(current_user, params)
+ end
+
private
# Autocomplete results for various settings pages