Class: ActionMailer::InlinePreviewInterceptor
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Base64
|
|
Inherits: | Object |
Defined in: | actionmailer/lib/action_mailer/inline_preview_interceptor.rb |
Overview
Implements a mailer preview interceptor that converts image tag src attributes that use inline cid: style URLs to data: style URLs so that they are visible when previewing an HTML email in a web browser.
This interceptor is enabled by default. To disable it, delete it from the Base.preview_interceptors array:
ActionMailer::Base.preview_interceptors.delete(ActionMailer::InlinePreviewInterceptor)
Constant Summary
-
PATTERN =
# File 'actionmailer/lib/action_mailer/inline_preview_interceptor.rb', line 18/src=(?:"cid:[^"]"|'cid:[^']')/i