The docs say that for direct dispatching mode to use controller
filters, but when the controller is run I get the following error.
The authorize method is in application.rb. Works fine when it’s not a
web service api. Should I be using before_invocation instead even
with direct dispatching mode? Or can I not have the authorize method
undefined method `authorize’ for #CustomerController:0x8ee54e0
class CustomerController < ActionController::Base