Sha256: d0288dff7e9610b55b771912b631796abb6b052e2467719ea8b70d28ed58ae8f

Contents?: true

Size: 535 Bytes

Versions: 28

Compression:

Stored size: 535 Bytes

Contents

# Nested set mixins

<% (1..10).each do |counter| %>
set_<%= counter %>:
  id: <%= counter+3000 %>
<% end %>

# Big old set
<%
[[4001, 0, 1, 20],
  [4002, 4001, 2, 7],
  [4003, 4002, 3, 4],
  [4004, 4002, 5, 6],
  [4005, 4001, 14, 13],
  [4006, 4005, 9, 10],
  [4007, 4005, 11, 12],
  [4008, 4001, 8, 19],
  [4009, 4008, 15, 16],
  [4010, 4008, 17, 18]].each do |set| %>
tree_<%= set[0] %>:
  id: <%= set[0]%>
  parent_id: <%= set[1]%>
  type: NestedSetWithStringScope
  lft: <%= set[2]%>
  rgt: <%= set[3]%>
  root_id: 42

<% end %>

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
ibm_db-5.5.0 test/fixtures/mixins.yml
ibm_db-5.4.1 test/fixtures/mixins.yml
ibm_db-5.4.0 test/fixtures/mixins.yml
ibm_db-5.3.2 test/fixtures/mixins.yml
ibm_db-5.3.1 test/fixtures/mixins.yml
ibm_db-5.2.0 test/fixtures/mixins.yml
ibm_db-5.1.0 test/fixtures/mixins.yml
ibm_db-5.0.5 test/fixtures/mixins.yml
ibm_db-5.0.4 test/fixtures/mixins.yml
ibm_db-5.0.3 test/fixtures/mixins.yml
ibm_db-5.0.2 test/fixtures/mixins.yml
ibm_db-4.0.0-x86-mingw32 test/fixtures/mixins.yml
ibm_db-4.0.0 test/fixtures/mixins.yml
ruby-on-quails-0.1.0 activerecord/test/fixtures/mixins.yml
ibm_db-3.0.4-x86-mingw32 test/fixtures/mixins.yml
ibm_db-3.0.4 test/fixtures/mixins.yml
ibm_db-3.0.3-x86-mingw32 test/fixtures/mixins.yml
ibm_db-3.0.3 test/fixtures/mixins.yml
ibm_db-3.0.2-x86-mingw32 test/fixtures/mixins.yml
ibm_db-3.0.2 test/fixtures/mixins.yml