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

before_action fired even when accessing wsdl #235

Open
xlts opened this issue May 11, 2017 · 0 comments
Open

before_action fired even when accessing wsdl #235

xlts opened this issue May 11, 2017 · 0 comments

Comments

@xlts
Copy link

xlts commented May 11, 2017

Hi, I encountered a problem after defining before_action methods in my controller. I noticed that these methods are fired not only for programmer-defined actions, but also for the ones in the gem itself, in particular when accessing WSDL, e.g. at http://localhost:3000/actions/wsdl. This is problematic especially when before_action method tries to operate on ActiveRecord models and expects parameters which, obviously, aren't there. Consequently, an error is raised and WSDL cannot be loaded. Of course one way to solve it is to use only: ..., but still I guess this behaviour is a bit unexpected.

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

No branches or pull requests

1 participant