Sha256: 7b0018a1c5e586b65447aaf4459948bf674a6b8f822bc335a335627bf41e712c

Contents?: true

Size: 610 Bytes

Versions: 17

Compression:

Stored size: 610 Bytes

Contents

module Refinery
  class UserMailer < ActionMailer::Base

    def reset_notification(user, request)
      @user = user
      @url = refinery.edit_refinery_user_password_url({
        :host => request.host_with_port,
        :reset_password_token => @user.reset_password_token
      })

      mail(:to => user.email,
           :subject => t('subject', :scope => 'refinery.user_mailer.reset_notification'),
           :from => "\"#{Refinery::Core.site_name}\" <no-reply@#{request.domain}>")
    end

  protected

    def url_prefix(request)
      "#{request.protocol}#{request.host_with_port}"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-authentication-2.1.5 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.1.4 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.1.3 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.1.2 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.1.1 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.1.0 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.10 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.9 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.8 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.7 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.6 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.5 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.4 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.3 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.2 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.1 app/mailers/refinery/user_mailer.rb
refinerycms-authentication-2.0.0 app/mailers/refinery/user_mailer.rb