Closed luislavena closed 8 years ago
When adding new nodes into the tree, the lookup mechanism failed to detect same named parameter was already added to it, raising an exception.
Example:
tree = Radix::Tree(Symbol).new tree.add "/members/:id/edit", :member_edit tree.add "/members/export", :members_export tree.add "/members/:id/videos", :member_videos # Exception
This fix ensures that comparison is done key by key, even if they are inserted into the tree in a different order.
Closes #9
When adding new nodes into the tree, the lookup mechanism failed to detect same named parameter was already added to it, raising an exception.
Example:
This fix ensures that comparison is done key by key, even if they are inserted into the tree in a different order.
Closes #9