DanaDanger-hyrarchy 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hyrarchy.rb +2 -2
- metadata +1 -1
data/lib/hyrarchy.rb
CHANGED
@@ -110,8 +110,8 @@ module Hyrarchy
|
|
110
110
|
child_path = node ?
|
111
111
|
node.send(:next_child_encoded_path) : parent_path.first_child
|
112
112
|
end
|
113
|
-
while self.exists?(:lft_numer =>
|
114
|
-
child_path =
|
113
|
+
while self.exists?(:lft_numer => child_path.numerator, :lft_denom => child_path.denominator)
|
114
|
+
child_path = child_path.next_sibling
|
115
115
|
end
|
116
116
|
child_path
|
117
117
|
end
|