Sha256: aaca984b2e062657e6b7921fa4c8cc612e512f23f8bb25ed8f19f1c4437bb64d
Contents?: true
Size: 427 Bytes
Versions: 5
Compression:
Stored size: 427 Bytes
Contents
module Mail class Message include Chimpster::SharedMessageExtensions def html? content_type && content_type.include?('text/html') end def body_html if html_part.nil? body.to_s if html? else html_part.body.to_s end end def body_text if text_part.nil? body.to_s else text_part.body.to_s end end end end
Version data entries
5 entries across 5 versions & 1 rubygems