123456789_123456789_123456789_123456789_123456789_

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 a HTML email in a web browser.

This interceptor is not enabled by default, to use it just register it like any other mailer preview interceptor:

ActionMailer::Base.register_preview_interceptor(ActionMailer::InlinePreviewInterceptor)

Constant Summary