Sha256: e7140efa5eb3bc0b436294442c778921b933fd1e2341b2893639d1ffe6eeca39
Contents?: true
Size: 280 Bytes
Versions: 3
Compression:
Stored size: 280 Bytes
Contents
# frozen_string_literal: true # Cribbed from email_spec gem module SanitizeEmail::MailExt def default_part @default_part ||= html_part || text_part || self end def default_part_body default_part.body end end Mail::Message.send(:include, SanitizeEmail::MailExt)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sanitize_email-2.0.3 | lib/sanitize_email/mail_ext.rb |
sanitize_email-2.0.2 | lib/sanitize_email/mail_ext.rb |
sanitize_email-2.0.1 | lib/sanitize_email/mail_ext.rb |