app/views/spree/api/taxons/index.v1.rabl in spree_api-2.0.4 vs app/views/spree/api/taxons/index.v1.rabl in spree_api-2.0.5

- old
+ new

@@ -1,4 +1,10 @@ -collection @taxons -attributes *taxon_attributes - -extends "spree/api/taxons/taxons" +object false +node(:count) { @taxons.count } +node(:total_count) { @taxons.total_count } +node(:current_page) { params[:page] ? params[:page].to_i : 1 } +node(:per_page) { params[:per_page] || Kaminari.config.default_per_page } +node(:pages) { @taxons.num_pages } +child(@taxons) do + attributes *taxon_attributes + extends "spree/api/taxons/taxons" +end