Module: APPI::RendersExceptions

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/appi/renders_exceptions.rb

Instance Method Summary collapse

Instance Method Details

#render_appi_exception(exception) ⇒ Object



4
5
6
# File 'app/controllers/concerns/appi/renders_exceptions.rb', line 4

def render_appi_exception(exception)
  render json: exception.as_json, status: exception.status.to_sym
end