Fix global search [SCI-1411]

This commit is contained in:
Oleksii Kriuchykhin 2017-06-28 15:44:18 +02:00
parent f7cef48f9f
commit 21cce4baa0

View file

@ -1,5 +1,5 @@
class SearchController < ApplicationController class SearchController < ApplicationController
before_filter :load_vars, only: :index before_action :load_vars, only: :index
def index def index
redirect_to new_search_path unless @search_query redirect_to new_search_path unless @search_query