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