nsarno/knock

View on GitHub
app/controllers/knock/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Knock
  class ApplicationController < ActionController::API
    rescue_from Knock.not_found_exception_class_name, with: :not_found

    private

    def not_found
      head :not_found
    end
  end
end