Sha256: 68a978b4e3a32aec53e9730666caf7f539f2e9fefbd53844846041475d326f59
Contents?: true
Size: 426 Bytes
Versions: 12
Compression:
Stored size: 426 Bytes
Contents
module Mail class Message include Postmark::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
12 entries across 12 versions & 1 rubygems