Sha256: ecfbd157dff367b98f512fef1210a1bcd8c3a8fa1cb1108018b0f0ea09c5dd97
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true module Mail module Jdec module CommonAddressFieldPatch def element super rescue Mail::Field::ParseError => e if Jdec.enabled? @errors = [name, value, e] @element = AddressList.new('') else raise e end end def errors @errors end def address_list element end end end end klasses = ObjectSpace.each_object(Class).select { |klass| klass < Mail::CommonAddressField } klasses.each do |klass| klass.prepend Mail::Jdec::CommonAddressFieldPatch end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mail-jdec-1.2.0 | lib/mail/jdec/fields/common_address_field_patch.rb |