Commit 8fb76e4d authored by Mario de la Ossa's avatar Mario de la Ossa

Backport of 1607-elastic_feature_flag_per_group

parent 12818c20
......@@ -14,8 +14,6 @@ class SearchController < ApplicationController
layout 'search'
def show
search_service = SearchService.new(current_user, params)
@project = search_service.project
@group = search_service.group
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment