PixNyanNyan/PixNyanNyan-api

View on GitHub
app/handlers/exceptions_app.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ExceptionsApp < Rambulance::ExceptionsApp
  def self.call(env)
    action('json_error').call(env)
  end

  def json_error
    render json: {error: "#{exception.class.name}: #{exception.message}"}
  end
end