Permalink
Browse files

Merge pull request #360 from eiwi1101/patch-1

Super minor update to ::arrange example in Readme.
  • Loading branch information...
2 parents 26691a0 + 2170489 commit 8c9ba3666e0dcbec7043067bc49c5962e2b3094d @kbrock kbrock committed Sep 28, 2017
Showing with 6 additions and 5 deletions.
  1. +6 −5 README.md
View
@@ -213,11 +213,12 @@ Ancestry can arrange an entire subtree into nested hashes for easy navigation
after retrieval from the database. TreeNode.arrange could for example return:
```ruby
-{ #<TreeNode id: 100018, name: "Stinky", ancestry: nil>
- => { #<TreeNode id: 100019, name: "Crunchy", ancestry: "100018">
- => { #<TreeNode id: 100020, name: "Squeeky", ancestry: "100018/100019">
- => {}
- }
+{
+ #<TreeNode id: 100018, name: "Stinky", ancestry: nil> => {
+ #<TreeNode id: 100019, name: "Crunchy", ancestry: "100018"> => {
+ #<TreeNode id: 100020, name: "Squeeky", ancestry: "100018/100019"> => {}
+ },
+ #<TreeNode id: 100021, name: "Squishy", ancestry: "100018"> => {}
}
}
```

0 comments on commit 8c9ba36

Please sign in to comment.