Sha256: 08607e6199259c8112055712cbdad949ec0bf58cc980a6f915ee05621d001248
Contents?: true
Size: 483 Bytes
Versions: 4
Compression:
Stored size: 483 Bytes
Contents
module Mail module Jdec module Ruby19Patch def pick_encoding(charset) if Jdec.enabled? Jdec.preferred_charsets.each do |from, to| if charset.to_s.downcase == from return Encoding.find(to) end end end super end end end end unless Mail::Ruby19.singleton_class.included_modules.include?(Mail::Jdec::Ruby19Patch) Mail::Ruby19.singleton_class.prepend Mail::Jdec::Ruby19Patch end
Version data entries
4 entries across 4 versions & 1 rubygems