Sha256: df3981e548c952fe5be870ac94c96e2178babb65334735ed454189b63a2b5728

Contents?: true

Size: 824 Bytes

Versions: 6

Compression:

Stored size: 824 Bytes

Contents

module Refinery
  module Authentication
    module Devise
      class UserMailer < ActionMailer::Base

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

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

      protected

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-authentication-devise-2.0.0 app/mailers/refinery/authentication/devise/user_mailer.rb
refinerycms-authentication-devise-1.0.4 app/mailers/refinery/authentication/devise/user_mailer.rb
refinerycms-authentication-devise-1.0.3 app/mailers/refinery/authentication/devise/user_mailer.rb
refinerycms-authentication-devise-1.0.2 app/mailers/refinery/authentication/devise/user_mailer.rb
refinerycms-authentication-devise-1.0.1 app/mailers/refinery/authentication/devise/user_mailer.rb
refinerycms-authentication-devise-1.0.0 app/mailers/refinery/authentication/devise/user_mailer.rb