Use ActionController::Metal instead of ActionController::Base.