diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb index 54b4373ef..79d164485 100644 --- a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb +++ b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb @@ -74,7 +74,7 @@ module ActiveRecord # # root.descendants # => [child1, subchild1, subchild2] def descendants - children + children.collect(&:children).flatten + children + children.collect(&:descendants).flatten end # Returns list of descendants and a reference to the current node. |