Sha256: 472a8ee92509eed878293c7065f388e9026d6db1fc9b05793740f10e382b8a37

Contents?: true

Size: 557 Bytes

Versions: 6

Compression:

Stored size: 557 Bytes

Contents

class RailsBase::EventMailer < RailsBase::ApplicationMailer
  default from: Rails.configuration.mail_from

  def send_sso(user:, message:)
    @user = user
    @message = message
    mail(to: user.email, subject: "#{Rails.application.class.parent_name}: SSO login", template_name: 'event')
    # event(user: user, event: 'SSO login', message: message)
  end

  def event(user:, event:, message:)
    @user = user
    @message = message
    mail(to: @user.email, subject: "#{Rails.application.class.parent_name}: #{event}", template_name: 'event')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_base-0.53.0 app/mailers/rails_base/event_mailer.rb
rails_base-0.52.3 app/mailers/rails_base/event_mailer.rb
rails_base-0.52.1 app/mailers/rails_base/event_mailer.rb
rails_base-0.52.0 app/mailers/rails_base/event_mailer.rb
rails_base-0.51.1 app/mailers/rails_base/event_mailer.rb
rails_base-0.51.0 app/mailers/rails_base/event_mailer.rb