lib/roadie/rails/mail_inliner.rb in roadie-rails-1.3.0 vs lib/roadie/rails/mail_inliner.rb in roadie-rails-2.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Roadie
module Rails
class MailInliner
attr_reader :email, :options
@@ -8,10 +10,10 @@
@options = options
end
def execute
if options
- improve_body if email.content_type =~ /^text\/html/
+ improve_body if email.content_type =~ %r{^text/html}
improve_html_part(email.html_part) if email.html_part
end
email
end