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

Fixing the :hide_documentation_path option for prefixed APIs #56

Closed
wants to merge 1 commit into from

Conversation

spier
Copy link
Contributor

@spier spier commented Aug 9, 2013

I discovered an issue that when mounting an API like /api/v1/<some_endpoint> the :hide_documentation_path just didn't do anything. The reason was that the piece of code with routes.reject! only checked the top most path, and didn't recurse down.

I tried myself at a fix and also added two more tests. I don't think it is optimal yet but it works for me.

@monfresh
Copy link

👍 I'm running into the same issue, and it would be great to have this fixed.

@tim-vandecasteele
Copy link
Contributor

Thanks, nice catch. Merged.

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.

3 participants