app/views/spree/api/v1/shipments/mine.v1.rabl in spree_api-3.1.5 vs app/views/spree/api/v1/shipments/mine.v1.rabl in spree_api-3.1.6
- old
+ new
@@ -1,8 +1,8 @@
object false
node(:count) { @shipments.count }
-node(:current_page) { params[:page] || 1 }
+node(:current_page) { params[:page].try(:to_i) || 1 }
node(:pages) { @shipments.total_pages }
child(@shipments => :shipments) do
extends "spree/api/v1/shipments/big"
end