Sha256: d0cd0da3dcb7ce26f99849e683c9c039819b1290037a6b5c520f55425865b664

Contents?: true

Size: 422 Bytes

Versions: 5

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module NoPassword
  class SessionsMailer < ApplicationMailer
    include NoPassword::WebTokens

    def send_token
      @session = params[:session]
      @title = t("mailers.send_token.subject")
      @friendly_token = @session.token
      @signed_token = token_to_url(sign_token(@friendly_token))

      mail(to: @session.email, subject: t("mailers.send_token.subject"))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
no_password_auth-0.5.0 app/mailers/no_password/sessions_mailer.rb
no_password_auth-0.4.1 app/mailers/no_password/sessions_mailer.rb
no_password_auth-0.4.0 app/mailers/no_password/sessions_mailer.rb
no_password_auth-0.3.0 app/mailers/no_password/sessions_mailer.rb
no_password_auth-0.2.1 app/mailers/no_password/sessions_mailer.rb