app/views/spree/api/taxons/index.v1.rabl in spree_api-2.1.3 vs app/views/spree/api/taxons/index.v1.rabl in spree_api-2.1.4
- old
+ new
@@ -2,9 +2,11 @@
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
+child @taxons => :taxons do
attributes *taxon_attributes
- extends "spree/api/taxons/taxons"
+ unless params[:without_children]
+ extends "spree/api/taxons/taxons"
+ end
end