app/controllers/scrivito/objs_controller.rb in scrivito_sdk-1.16.0 vs app/controllers/scrivito/objs_controller.rb in scrivito_sdk-1.17.0.rc1
- old
+ new
@@ -32,11 +32,11 @@
end
end
def search
in_selected_workspace do
- @query = MultiJson.decode(params[:query]).with_indifferent_access
+ @query = JSON.parse(params[:query]).with_indifferent_access
@enumerator = ObjSearchBuilder.new(@query).build
if params[:query_action] == 'size'
return render action: 'search/size'
end
@@ -44,10 +44,10 @@
unless @formatter = fetch_formatter(@query[:format])
return render action: 'search/missing_formatter', status: :not_found
end
if facet_params = params[:facet]
- attribute, options = MultiJson.decode(facet_params).values_at('attribute', 'options')
+ attribute, options = JSON.parse(facet_params).values_at('attribute', 'options')
@facets = @enumerator.facet(attribute, options || {})
return render action: 'search/facet'
end
@batch = @enumerator.fetch_batch(params[:continuation])