Class: ApplicationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/application_mailer.rb

Direct Known Subclasses

UserMailer

Class Method Summary collapse

Class Method Details

.environment_variables_set?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/mailers/application_mailer.rb', line 12

def self.environment_variables_set?
  mailer_environment_variables.all? { |env_var| ENV[env_var].present? }
end

.mailer_environment_variablesObject



5
6
7
8
9
10
# File 'app/mailers/application_mailer.rb', line 5

def self.mailer_environment_variables
  %w( MUMUKI_REMINDER_SENDER_EMAIL
      MUMUKI_REMINDER_MAILER_SMTP_ADDRESS
      MUMUKI_REMINDER_MAILER_USERNAME
      MUMUKI_REMINDER_MAILER_PASSWORD)
end