Class: HeadstartMailer
- Inherits:
-
Object
- Object
- HeadstartMailer
- Defined in:
- app/models/headstart_mailer.rb
Class Method Summary collapse
Class Method Details
.deliver_change_password(user) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/models/headstart_mailer.rb', line 3 def self.deliver_change_password(user) if MadMimiMailer.api_settings.present? && MadMimiMailer.api_settings[:username].present? && MadMimiMailer.api_settings[:api_key].present? MimiMailer.deliver_mimi_change_password(user) else GenericMailer.deliver_change_password(user) end end |
.deliver_welcome(user) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/models/headstart_mailer.rb', line 11 def self.deliver_welcome(user) if MadMimiMailer.api_settings.present? && MadMimiMailer.api_settings[:username].present? && MadMimiMailer.api_settings[:api_key].present? MimiMailer.deliver_welcome(user) else GenericMailer.deliver_welcome(user) end end |