hackaru-app/hackaru-api

View on GitHub
app/controllers/exceptions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class ExceptionsController < ActionController::API
  include ApiErrorRenderable

  def show
    exception = request.env['action_dispatch.exception']
    render_api_error ApiExceptionError.new(exception)
  end
end