Module: ActionMailer::Previews

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
actionmailer/lib/action_mailer/preview.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included, prepend_features, prepended

Instance Method Details

#preview_pathObject



28
29
30
31
32
33
34
# File 'actionmailer/lib/action_mailer/preview.rb', line 28

def preview_path
  ActionMailer.deprecator.warn(<<-MSG.squish)
    Using preview_path option is deprecated and will be removed in Rails 7.2.
    Please use preview_paths instead.
  MSG
  self.class.preview_paths.first
end