Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for optional path segments #879

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants