Module: PostmarkRails

Defined in:
lib/postmark-rails.rb,
lib/postmark-rails/railtie.rb,
lib/postmark-rails/version.rb,
lib/postmark-rails/templated_mailer.rb,
lib/postmark-rails/preview_interceptor.rb

Defined Under Namespace

Modules: ActionMailerExtensions, TemplatedMailerMixin Classes: PreviewInterceptor, Railtie, TemplatedMailer

Constant Summary collapse

VERSION =
'0.22.1'

Class Method Summary collapse

Class Method Details

.installObject



16
17
18
19
20
21
# File 'lib/postmark-rails.rb', line 16

def self.install
  require 'postmark-rails/preview_interceptor'
  require 'postmark-rails/templated_mailer'
  ActionMailer::Base.add_delivery_method :postmark, Mail::Postmark
  ActionMailer::Base.send(:include, ActionMailerExtensions)
end