summaryrefslogtreecommitdiffstats
path: root/lib/plugins/acts_as_tree
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-31 17:17:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-31 17:17:52 +0000
commitbc153cb61df37e2097c5bec529cabdb15e6887bf (patch)
tree05be0525dc3258c00349e7cc6b5ab333ca4139c0 /lib/plugins/acts_as_tree
parent9554f0133ff634264eb110c91ad317be28e6dd32 (diff)
downloadredmine-bc153cb61df37e2097c5bec529cabdb15e6887bf.tar.gz
redmine-bc153cb61df37e2097c5bec529cabdb15e6887bf.zip
Support for subforums (#3831).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10142 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins/acts_as_tree')
-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.