lib/depth/enumeration/node.rb in depth-0.0.1 vs lib/depth/enumeration/node.rb in depth-0.0.2
- old
+ new
@@ -7,10 +7,10 @@
def route
route = []
current = self
while(!current.root?)
- route << RouteElement.new(current.parent_key, fragment_type)
+ route << RouteElement.new(current.parent_key, type: current.fragment_type)
current = current.parent
end
route.reverse
end