You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However if you run into a method not allowed, not only will this block executed, it also sets env (and @headers) to nil and throws an error that is never caught and will expose the stacktrace to the caller.
Note: this runs the before filters in the Method not allowed context. I guess at this point env and @headers also should be initialized like it is done in the endpoint
leifg
changed the title
env and @herads not available in before block when Method not allowed
env and @heraders not available in before block when Method not allowed
Jul 19, 2016
leifg
changed the title
env and @heraders not available in before block when Method not allowed
env and @headers not available in before block when Method not allowed
Jul 19, 2016
Suppose you do this:
In general this is possible.
However if you run into a method not allowed, not only will this block executed, it also sets
env
(and@headers
) tonil
and throws an error that is never caught and will expose the stacktrace to the caller.I created an example project here.
The text was updated successfully, but these errors were encountered: