diff options
Diffstat (limited to 'app/controllers/search_controller.rb')
-rw-r--r-- | app/controllers/search_controller.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 45aefe48538..6c1d9a20570 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -35,6 +35,10 @@ class SearchController < ApplicationController update_scope_for_code_search end + before_action only: :show do + push_frontend_feature_flag(:search_projects_hide_archived, current_user) + end + rescue_from ActiveRecord::QueryCanceled, with: :render_timeout layout 'search' @@ -107,7 +111,7 @@ class SearchController < ApplicationController end def autocomplete - term = params[:term] + term = params.require(:term) @project = search_service.project @ref = params[:project_ref] if params[:project_ref].present? @@ -248,7 +252,7 @@ class SearchController < ApplicationController end def search_type - 'basic' + search_service.search_type end end |