Class: PostmarkRails::PreviewInterceptor
- Inherits:
-
Object
- Object
- PostmarkRails::PreviewInterceptor
- 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() return unless .templated? .delivery_method(::Mail::Postmark, ::ActionMailer::Base.postmark_settings) .prerender end |