We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e328f1a commit ee945b0Copy full SHA for ee945b0
lib/closure_tree/model.rb
@@ -97,7 +97,7 @@ def self_and_ancestors_ids
97
# to the +name_column+.
98
# (so child.ancestry_path == +%w{grandparent parent child}+
99
def ancestry_path(to_s_column = _ct.name_column)
100
- self_and_ancestors.reverse.map { |n| n.send to_s_column.to_sym }
+ self_and_ancestors.map { |n| n.send to_s_column.to_sym }.reverse
101
end
102
103
def child_ids
0 commit comments