diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index b36d0b0d7..5176cea02 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -5,13 +5,8 @@ class SearchesController < ApplicationController if card = Current.user.accessible_cards.find_by_id(params[:q]) @card = card else - perform_search - end - end - - private - def perform_search set_page_and_extract_portion_from Current.user.search(params[:q]) @recent_search_queries = Current.user.search_queries.order(updated_at: :desc).limit(10) end + end end