Module: JsonApiToolbox::RenderizableExceptions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/renderizable_exceptions.rb
Instance Method Summary collapse
Instance Method Details
#render_any_exception(exception) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/renderizable_exceptions.rb', line 14 def render_any_exception(exception) render( jsonapi_errors: { title: exception.class.to_s, detail: exception., source: {} }, jsonapi_class: { class: { Hash: JsonApiToolbox::Serializables::SerializableException } } ) end |