Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Use ActionController::API for Knock::ApplicationController instead of ActionController::Base #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/knock/application_controller.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down