Sha256: bc3b7a613fc0429894a29c3e193b619eb088a6e01faae7f506bd339baced2498

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 Bytes

Contents

[<% @taxons.each_with_index do |t,i| %>
  { "attr" :
    { "id" : "<%= t.id %>" },
    "data" : "<%= raw(t.name.gsub('"','\"')) %>"
    <% unless t.children.empty? %>
      ,"state" : "closed"
    <% end %>
  }<%= "," if i < (@taxons.size - 1) %>
<% end %>]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/taxonomies/get_children.json.erb
spree_core-1.3.4 app/views/spree/admin/taxonomies/get_children.json.erb
spree_core-1.3.3 app/views/spree/admin/taxonomies/get_children.json.erb
spree_core-1.2.5 app/views/spree/admin/taxonomies/get_children.json.erb
spree_core-1.2.4 app/views/spree/admin/taxonomies/get_children.json.erb
spree_core-1.3.2 app/views/spree/admin/taxonomies/get_children.json.erb