app/controllers/spree/api/zones_controller.rb in solidus_api-2.9.6 vs app/controllers/spree/api/zones_controller.rb in solidus_api-2.10.0.beta1

- old
+ new

@@ -35,10 +35,10 @@ respond_with(zone) end def update authorize! :update, zone - if zone.update_attributes(zone_params) + if zone.update(zone_params) respond_with(zone, status: 200, default_template: :show) else invalid_resource!(zone) end end