Module: AhoyEmail::Mailer
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ahoy_email/mailer.rb
Instance Method Summary collapse
Instance Method Details
#ahoy_options ⇒ Object
22 23 24 |
# File 'lib/ahoy_email/mailer.rb', line 22 def @ahoy_options ||= AhoyEmail. end |
#save_ahoy_options ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ahoy_email/mailer.rb', line 26 def Safely.safely do # do message first for performance = [:message] = .respond_to?(:call) ? instance_exec(&) : if = {} .except(:message).each do |k, v| # execute options in mailer content [k] = v.respond_to?(:call) ? instance_exec(&v) : v end AhoyEmail::Processor.new(self, ).perform end end end |
#track(**options) ⇒ Object
18 19 20 |
# File 'lib/ahoy_email/mailer.rb', line 18 def track(**) self. = .merge(message: true).merge() end |