summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb2
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.