Module: ActionMailer::Previews

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

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#preview_pathObject



28
29
30
31
32
33
34
# File '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