app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-1.0.0 vs app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-1.1.0

- old
+ new

@@ -26,10 +26,12 @@ end def index respond_to do |format| format.html - format.json { render json: @searches.published.as_json(methods: [:count, :thumbnail_image_url]), root: false } + format.json do + render json: @searches.as_json(methods: [:count, :thumbnail_image_url]), root: false + end end end def autocomplete search_params = autocomplete_params.merge(search_field: Spotlight::Engine.config.autocomplete_search_field)