Sha256: ded81653aacfd25e7730fe487c9f138d14aafd286f9df06c33f2928e075ab656
Contents?: true
Size: 441 Bytes
Versions: 8
Compression:
Stored size: 441 Bytes
Contents
module ApiPack module Errors class ValidationErrorsSerializer attr_reader :record def initialize(record) @record = record end def serialize record.errors.messages.map do |field, messages| messages.map do |error_messages| ApiPack::Errors::ValidationErrorSerializer.new(record, field, error_messages).serialize end end.flatten end end end end
Version data entries
8 entries across 8 versions & 1 rubygems