Sha256: 605c25994bf767cf507d84ea224278f3892a91a83dbd9e02aee33e1b105a1d47

Contents?: true

Size: 689 Bytes

Versions: 55

Compression:

Stored size: 689 Bytes

Contents

module EgovUtils
  class UserMailer < ApplicationMailer

    before_action { @host = params && params[:host] || Rails.application.config.action_mailer.default_url_options[:host] }

    def confirmation_email(user)
      @user = user
      mail(to: user.mail, subject: t(:app_name))
    end

    def account_information(user, password)
      @user = user
      @password = password
      mail(to: user.mail, subject: t(:app_name))
    end

    def password_reset(user, token)
      @user, @token = user, token
      mail(to: user.mail, subject: t(:app_name))
    end

    def password_change_info(user)
      @user = user
      mail(to: user.mail, subject: t(:app_name))
    end

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
egov_utils-0.6.5 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.6.4 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.6.3 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.6.2 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.6.1 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.6.0 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.5.2 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.5.1 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.5.0 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.4.18 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.4.17 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.4.16 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.4.15 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.4.14 app/mailers/egov_utils/user_mailer.rb
egov_utils-0.4.13 app/mailers/egov_utils/user_mailer.rb