wash_out
wash_out copied to clipboard
before_action fired even when accessing wsdl
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.