app/views/spree/api/states/index.v1.rabl in solidus_api-1.3.2 vs app/views/spree/api/states/index.v1.rabl in solidus_api-1.4.0.beta1
- old
+ new
@@ -7,8 +7,8 @@
attributes *state_attributes
end
if @states.respond_to?(:total_pages)
node(:count) { @states.count }
- node(:current_page) { params[:page] || 1 }
+ node(:current_page) { @states.current_page }
node(:pages) { @states.total_pages }
end