Sha256: 37050e796888023d87797c9f88b92cda262432679cafb20bbf2a8a95c7892f33
Contents?: true
Size: 365 Bytes
Versions: 21
Compression:
Stored size: 365 Bytes
Contents
require 'fun_with_json_api/exception_payload_serializer' module FunWithJsonApi class ExceptionSerializer < ActiveModel::Serializer::CollectionSerializer def initialize(exception, options = {}) super(exception.payload, options.reverse_merge( serializer: ExceptionPayloadSerializer )) end def root 'errors' end end end
Version data entries
21 entries across 21 versions & 1 rubygems