Sha256: 5cc1254f708480f9424709709c1e6187ecc810aa42084ac945f74f232554c7cf
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
# # This module is only used for Rails 2. # module PostmarkDeliveryMethod module ClassMethods def postmark_api_key=(value) Postmark.api_key = value end end def self.included(base) base.extend(ClassMethods) base.class_eval do alias_method_chain :create_mail, :tag end end def perform_delivery_postmark(message) Postmark.send_through_postmark(message) end def tag(value) @tag = value end def create_mail_with_tag returning create_mail_without_tag do |mail| mail.tag = @tag if @tag end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postmark-rails-0.3.0 | lib/postmark_delivery_method.rb |