Skip to content

Commit 49bacf7

Browse files
committed
Updated doc and version bump to 3.3.0
1 parent 5da6e04 commit 49bacf7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### NEXT
1+
### Version 3.3.0
22
- added __includes:__ option to __preload_tree__
33

44
### Version 3.2.0

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ __Additional methods:__
134134
__Utility methods:__
135135
* `root?` - returns true if this node is a root node
136136
* `leaf?` - returns true if this node is a leave node
137-
* `preload_tree` - fetches all descendants of this node and assignes the proper parent/children associations. You are then able to traverse the tree through the children/parent association without querying the database again.
137+
* `preload_tree` - fetches all descendants of this node and assigns the proper parent/children associations. You are then able to traverse the tree through the children/parent association without querying the database again. You can also pass arguments to `includes` which will be forwarded when fetching records.
138+
139+
```ruby
140+
node.preload_tree(includes: [:association, :another_association])
141+
```
138142

139143
## Customizing the recursion
140144

lib/acts_as_recursive_tree/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module ActsAsRecursiveTree
4-
VERSION = '3.2.0'
4+
VERSION = '3.3.0'
55
end

0 commit comments

Comments
 (0)