Sha256: 62a3e856582fafc652cdeb9b8a98d3a9ad9da6d28da6b76ca58022258cd74ce4
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module SendcloudMailer class Interceptor def self.delivering_email(mail) html = mail.html_part ? mail.html_part.body.decoded : nil return if html.nil? html = Nokogiri::HTML(html) body = html.xpath('//body')[0] body.name = 'div' mail.html_part.body = body.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sendcloud-mailer-0.2.0 | lib/sendcloud-mailer/interceptor.rb |