Sha256: c79e702a6da017cd82432e63ab3b717b8404e1fc447390f589bcbaee034a1c2f

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

module PostmarkRails
  class PreviewInterceptor
    def self.previewing_email(message)
      return unless message.templated?

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
postmark-rails-0.22.1 lib/postmark-rails/preview_interceptor.rb
postmark-rails-0.22.0 lib/postmark-rails/preview_interceptor.rb
postmark-rails-0.21.0 lib/postmark-rails/preview_interceptor.rb
postmark-rails-0.20.0 lib/postmark-rails/preview_interceptor.rb
postmark-rails-0.19.0 lib/postmark-rails/preview_interceptor.rb