module AppMail::MailGem::ConfigExtension
Public Class Methods
included(base)
click to toggle source
# File lib/app_mail/mail_gem/config_extension.rb, line 12 def self.included(base) base.class_eval do alias_method :lookup_delivery_method_without_appmail, :lookup_delivery_method alias_method :lookup_delivery_method, :lookup_delivery_method_with_appmail end end
load()
click to toggle source
# File lib/app_mail/mail_gem/config_extension.rb, line 8 def self.load Mail::Configuration.send :include, self end
Public Instance Methods
lookup_delivery_method_with_appmail(method)
click to toggle source
# File lib/app_mail/mail_gem/config_extension.rb, line 19 def lookup_delivery_method_with_appmail(method) if method == :appmail DeliveryMethod else lookup_delivery_method_without_appmail(method) end end