Class: ApplicationController

Inherits:
ActionController::API
  • Object
show all
Includes:
Knock::Authenticable
Defined in:
app/controllers/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#render_not_found_response(exception) ⇒ Object


8
9
10
# File 'app/controllers/application_controller.rb', line 8

def render_not_found_response(exception)
    render json: { status: "ERROR", message: exception.message }, status: :not_found
end