Skip to content

Add support for optional path segments #879

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

spaceraccoon
Copy link
Contributor

This adds support for optional path segments in rails as per #878 by recursively including/excluding optional path segments in parentheses. Additionally, this modifies the PathString.build method due to the need to handle multiple possible paths per route, but respects the non-mutation paradigm.

@spaceraccoon spaceraccoon force-pushed the spaceraccoon-add-optional-segments-handling branch from 4539dc6 to 96a39f4 Compare November 11, 2022 03:41
@spaceraccoon spaceraccoon force-pushed the spaceraccoon-add-optional-segments-handling branch from 96a39f4 to ffbebd2 Compare November 15, 2022 17:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants