Sha256: c46fe288fd5f9f8f0cafa2f9ebdb812b79fe4144b043ffb7819f49e32c8df5dd

Contents?: true

Size: 537 Bytes

Versions: 111

Compression:

Stored size: 537 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

111 entries across 111 versions & 21 rubygems

Version Path
relevance-castronaut-0.7.5 vendor/activerecord/test/fixtures/mixins.yml
activerecord-2.3.18 test/fixtures/mixins.yml
activerecord_csi-2.3.5.p8 test/fixtures/mixins.yml
activerecord-2.3.17 test/fixtures/mixins.yml
activerecord_csi-2.3.5.p7 test/fixtures/mixins.yml
activerecord_csi-2.3.5.p6 test/fixtures/mixins.yml
activerecord-2.3.16 test/fixtures/mixins.yml
activerecord-2.3.15 test/fixtures/mixins.yml
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/fixtures/mixins.yml
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/fixtures/mixins.yml
activerecord-2.3.14 test/fixtures/mixins.yml
kajam-1.0.3.rc2 vendor/rails/activerecord/test/fixtures/mixins.yml
activerecord-2.3.12 test/fixtures/mixins.yml
radiant-1.0.0.rc2 vendor/rails/activerecord/test/fixtures/mixins.yml
radiant-1.0.0.rc1 vendor/rails/activerecord/test/fixtures/mixins.yml
webroar-0.5.0 src/admin_panel/vendor/rails/activerecord/test/fixtures/mixins.yml
activerecord-2.3.11 test/fixtures/mixins.yml
radiantcms-couchrest_model-0.2.4 vendor/rails/activerecord/test/fixtures/mixins.yml
radiantcms-couchrest_model-0.2.2 vendor/rails/activerecord/test/fixtures/mixins.yml
radiantcms-couchrest_model-0.2.1 vendor/rails/activerecord/test/fixtures/mixins.yml