diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-27 14:58:23 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-02 23:36:54 +0300 |
commit | c5d7660000be72dd03ac52641debbd2bcf6fbc4d (patch) | |
tree | 024c8a78bea0b70cabbbdd3b17e19c4892e4d932 /app/mailers/emails/profile.rb | |
parent | 8361ba81abbab2d28ae5018daf531992710dc4ca (diff) |
Fix errors.
Diffstat (limited to 'app/mailers/emails/profile.rb')
-rw-r--r-- | app/mailers/emails/profile.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/emails/profile.rb b/app/mailers/emails/profile.rb index ab5b0765352..3a83b083109 100644 --- a/app/mailers/emails/profile.rb +++ b/app/mailers/emails/profile.rb @@ -1,7 +1,7 @@ module Emails module Profile def new_user_email(user_id, token = nil) - @user = User.find(user_id) + @current_user = @user = User.find(user_id) @target_url = user_url(@user) @token = token mail(to: @user.notification_email, subject: subject("Account was created for you")) @@ -9,13 +9,13 @@ module Emails def new_email_email(email_id) @email = Email.find(email_id) - @user = @email.user + @current_user = @user = @email.user mail(to: @user.notification_email, subject: subject("Email was added to your account")) end def new_ssh_key_email(key_id) @key = Key.find(key_id) - @user = @key.user + @current_user = @user = @key.user @target_url = user_url(@user) mail(to: @user.notification_email, subject: subject("SSH key was added to your account")) end |