app/controllers/spree/admin/search_controller.rb in spree_backend-3.0.1 vs app/controllers/spree/admin/search_controller.rb in spree_backend-3.0.2
- old
+ new
@@ -1,10 +1,12 @@
module Spree
module Admin
class SearchController < Spree::Admin::BaseController
+ respond_to :json
+ layout false
+
# http://spreecommerce.com/blog/2010/11/02/json-hijacking-vulnerability/
before_action :check_json_authenticity, only: :index
- respond_to :json
# TODO: Clean this up by moving searching out to user_class_extensions
# And then JSON building with something like Active Model Serializers
def users
if params[:ids]