wash_out icon indicating copy to clipboard operation
wash_out copied to clipboard

before_action fired even when accessing wsdl

Open xlts opened this issue 7 years ago • 0 comments

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.

xlts avatar May 11 '17 13:05 xlts