Sha256: d25c5e187bd48df8501a5cb24ec6e828cd78c69466c63d2f60c0a58910042204

Contents?: true

Size: 618 Bytes

Versions: 13

Compression:

Stored size: 618 Bytes

Contents

class HeadstartMailer

  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
  
  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

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
headstart-0.11.2 app/models/headstart_mailer.rb
headstart-0.11.1 app/models/headstart_mailer.rb
headstart-0.9.2 app/models/headstart_mailer.rb
headstart-0.9.1 app/models/headstart_mailer.rb
headstart-0.9.0 app/models/headstart_mailer.rb
headstart-0.8.0 app/models/headstart_mailer.rb
headstart-0.7.0 app/models/headstart_mailer.rb
headstart-0.6.2 app/models/headstart_mailer.rb
headstart-0.6.1 app/models/headstart_mailer.rb
headstart-0.6.0 app/models/headstart_mailer.rb
headstart-0.5.5 app/models/headstart_mailer.rb
headstart-0.5.4 app/models/headstart_mailer.rb
headstart-0.5.3 app/models/headstart_mailer.rb