Sha256: a1bc28ded9bf02c785935298a6f57bef58fe10b536257db7c86aa5cda3db6091
Contents?: true
Size: 302 Bytes
Versions: 2
Compression:
Stored size: 302 Bytes
Contents
module EmailSpec::MailExt def default_part @default_part ||= html_part || text_part || self end def default_part_body HTMLEntities.new.decode(default_part.body) end def html html_part ? html_part.body.raw_source : nil end end Mail::Message.send(:include, EmailSpec::MailExt)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
email_spec-2.1.1 | lib/email_spec/mail_ext.rb |
email_spec-2.1.0 | lib/email_spec/mail_ext.rb |