From c51cefd25dedeccb0ab599425750705705b9bf1c Mon Sep 17 00:00:00 2001 From: Xavier Bick Date: Thu, 17 Aug 2017 14:55:39 -0500 Subject: [PATCH] Use ActionController::API for Knock::ApplicationController instead of :AC::Base --- app/controllers/knock/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/knock/application_controller.rb b/app/controllers/knock/application_controller.rb index dd39add..a49f879 100644 --- a/app/controllers/knock/application_controller.rb +++ b/app/controllers/knock/application_controller.rb @@ -1,5 +1,5 @@ module Knock - class ApplicationController < ActionController::Base + class ApplicationController < ActionController::API rescue_from Knock.not_found_exception_class_name, with: :not_found private