class InlinePreviewInterceptor

Ruby on Rails 7.0.10

Since v4.1.16

Available in: v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

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 ActionMailer::Base.preview_interceptors array:

ActionMailer::Base.preview_interceptors.delete(ActionMailer::InlinePreviewInterceptor)

Inherits from

Object

Includes

Constants

Attributes

Private methods

(3) Implementation detail — not part of the public API.

Methods (inherited)

From Object (16)
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Concern (3)

Type at least 2 characters to search.

↑↓ navigate · open · esc close