Sha256: b206d404f20c703e96ca6592e690cfb52fe82246fd9e885210f3817b1c73b5cb
Contents?: true
Size: 595 Bytes
Versions: 5
Compression:
Stored size: 595 Bytes
Contents
require 'active_support/rescuable' require 'action_mailer' require 'postmark' module PostmarkRails module ActionMailerExtensions def metadata @_message.metadata end def metadata=(val) @_message.metadata=(val) end end 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 end if defined?(Rails) require 'postmark-rails/railtie' else PostmarkRails.install end
Version data entries
5 entries across 5 versions & 1 rubygems