app/controllers/spree/api/classifications_controller.rb in solidus_api-1.2.3 vs app/controllers/spree/api/classifications_controller.rb in solidus_api-1.3.0.beta1

- old
+ new

@@ -3,16 +3,16 @@ class ClassificationsController < Spree::Api::BaseController def update authorize! :update, Product authorize! :update, Taxon classification = Spree::Classification.find_by( - :product_id => params[:product_id], - :taxon_id => params[:taxon_id] + product_id: params[:product_id], + taxon_id: params[:taxon_id] ) # Because position we get back is 0-indexed. # acts_as_list is 1-indexed. classification.insert_at(params[:position].to_i + 1) - render :nothing => true + render nothing: true end end end -end \ No newline at end of file +end