Module: MailJack::Mailer
- Defined in:
- lib/mail_jack/mailer.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/mail_jack/mailer.rb', line 3 def self.included(base) base.class_eval do alias_method_chain :mail, :tracking end end |
Instance Method Details
#mail_with_tracking(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mail_jack/mailer.rb', line 9 def mail_with_tracking(*args) = mail_without_tracking(*args) # get a map of the required attributes attributes = MailJack.fetch_attributes(self) # assign them to the mail message attributes.each do |key, val| .send("#{key}=", val) end return end |