mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Support for subforums (#3831).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10142 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user