Class: BlueLightSpecialMailer

Inherits:
Object
  • Object
show all
Defined in:
app/models/blue_light_special_mailer.rb

Class Method Summary collapse

Class Method Details

.deliver_change_password(user) ⇒ Object



3
4
5
6
7
8
9
# File 'app/models/blue_light_special_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_confirmation(user) ⇒ Object



19
20
21
22
23
24
25
# File 'app/models/blue_light_special_mailer.rb', line 19

def self.deliver_confirmation(user)
  if MadMimiMailer.api_settings.present? && MadMimiMailer.api_settings[:username].present? && MadMimiMailer.api_settings[:api_key].present?
    MimiMailer.deliver_confirmation(user)
  else
    GenericMailer.deliver_confirmation(user)
  end
end

.deliver_welcome(user) ⇒ Object



11
12
13
14
15
16
17
# File 'app/models/blue_light_special_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