-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
OPTIONS method for namespaced GET does not call inner before filter #1428
Labels
Comments
jlfaber
pushed a commit
to jlfaber/grape
that referenced
this issue
Jun 15, 2016
This demonstrates issue ruby-grape#1428.
Yep, looks like a bug. |
jlfaber
pushed a commit
to jlfaber/grape
that referenced
this issue
Jul 20, 2016
This demonstrates issue ruby-grape#1428.
I'm going to fix it in a few days. Thanks for the report. |
namusyaka
added a commit
that referenced
this issue
Sep 11, 2016
namusyaka
pushed a commit
to namusyaka/grape
that referenced
this issue
Sep 11, 2016
This demonstrates issue ruby-grape#1428.
namusyaka
added a commit
to namusyaka/grape
that referenced
this issue
Sep 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use a namespace to define a GET method, and I add a before filter within the namespace block, that filter is called when GET executes, but is not called when OPTIONS executes. This differs from the behavior when the GET and before filter are not within a namespace. In that case, the before filter is called both for GET and OPTIONS.
I'll add a PR with a failing test spec to demonstrate the issue.
The text was updated successfully, but these errors were encountered: