Class: PostmarkRails::PreviewInterceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/postmark-rails/preview_interceptor.rb

Class Method Summary collapse

Class Method Details

.previewing_email(message) ⇒ Object



3
4
5
6
7
8
# File 'lib/postmark-rails/preview_interceptor.rb', line 3

def self.previewing_email(message)
  return unless message.templated?

  message.delivery_method(::Mail::Postmark, ::ActionMailer::Base.postmark_settings)
  message.prerender
end