app/assets/javascripts/spree/backend/models/payment.js in solidus_backend-2.10.5 vs app/assets/javascripts/spree/backend/models/payment.js in solidus_backend-2.11.0
- old
+ new
@@ -1,5 +1,5 @@
Spree.Models.Payment = Backbone.Model.extend({
urlRoot: function() {
- return Spree.routes.payments_api(this.get('order_id'));
+ return Spree.pathFor('api/orders/' + this.get('order_id') + '/payments')
}
});