Sha256: 845674d777c63fb98ebe6e108120da66401001fbecb55db1bd24dcc50097dfee
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
# frozen_string_literal: true if params[:set] == "nested" json.partial!("spree/api/taxonomies/nested", taxonomy:) else json.(taxonomy, *taxonomy_attributes) json.root do json.(taxonomy.root, *taxon_attributes) json.taxons(taxonomy.root.children) do |taxon| json.(taxon, *taxon_attributes) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_api-4.4.1 | app/views/spree/api/taxonomies/_taxonomy.json.jbuilder |
solidus_api-4.4.0 | app/views/spree/api/taxonomies/_taxonomy.json.jbuilder |