class FunWithJsonApi::ExceptionSerializer

Public Class Methods

new(exception, options = {}) click to toggle source
Calls superclass method
# File lib/fun_with_json_api/exception_serializer.rb, line 5
def initialize(exception, options = {})
  super(exception.payload, options.reverse_merge(
    serializer: ExceptionPayloadSerializer
  ))
end

Public Instance Methods

root() click to toggle source
# File lib/fun_with_json_api/exception_serializer.rb, line 11
def root
  'errors'
end