From a7eec3da5c9af2f8d03b65453bdfbad214f05757 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 18 Mar 2016 23:37:20 +0530 Subject: [PATCH] FIX: blank search was broken --- app/controllers/search_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 92380185d..bdbb163a7 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -25,7 +25,7 @@ class SearchController < ApplicationController search = Search.new(params[:q], search_args) result = search.execute - result.find_user_data(guardian) + result.find_user_data(guardian) if result serializer = serialize_data(result, GroupedSearchResultSerializer, result: result)