Skip to content

Commit 26be658

Browse files
committed
add readme and version bump
1 parent ae4fb2f commit 26be658

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ When you enable ```order```, you'll also have the following new methods injected
336336
337337
If your ```order``` column is an integer attribute, you'll also have these:
338338

339+
* The class method ```#roots_and_descendants_preordered```, which returns all nodes in your tree,
340+
[pre-ordered](http://en.wikipedia.org/wiki/Tree_traversal#Pre-order).
341+
339342
* ```node1.self_and_descendants_preordered``` which will return descendants,
340343
[pre-ordered](http://en.wikipedia.org/wiki/Tree_traversal#Pre-order).
341344

@@ -441,6 +444,11 @@ Parallelism is not tested with Rails 3.0.x nor 3.1.x due to this
441444

442445
## Change log
443446

447+
### 3.10.0
448+
449+
* Added ```#roots_and_descendants_preordered```.
450+
Thanks for the suggestion, [Leonel Galan](https://github.com/leonelgalan)!
451+
444452
### 3.9.0
445453

446454
* Added ```.child_ids```.

Diff for: lib/closure_tree/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ClosureTree
2-
VERSION = "3.9.0" unless defined?(::ClosureTree::VERSION)
2+
VERSION = "3.10.0" unless defined?(::ClosureTree::VERSION)
33
end

0 commit comments

Comments
 (0)