Sha256: e1aae6c83c47848766e2d598ecf59ca0b213b2d39c7bdb9be3c0df0207884297
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sendcloud-mailer-0.1.2 | lib/sendcloud-mailer/interceptor.rb |
sendcloud-mailer-0.1.1 | lib/sendcloud-mailer/interceptor.rb |