diff options
author | Alexandra <brett@digitalmoksha.com> | 2017-10-01 18:07:26 +0300 |
---|---|---|
committer | Alexandra <brett@digitalmoksha.com> | 2017-10-01 18:07:26 +0300 |
commit | ed3c25e4294bfc75f7167ed63e30561e39ac3a97 (patch) | |
tree | 1c00af6738e0742e9d2140222ebdea669c8b6c37 /app/controllers/profiles | |
parent | 39fbac868197442053d058023206f84f63473551 (diff) |
spacing and small optimisations
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/emails_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/profiles/emails_controller.rb b/app/controllers/profiles/emails_controller.rb index 2c85606c271..3ffe5729c2c 100644 --- a/app/controllers/profiles/emails_controller.rb +++ b/app/controllers/profiles/emails_controller.rb @@ -2,7 +2,7 @@ class Profiles::EmailsController < Profiles::ApplicationController before_action :find_email, only: [:destroy, :resend_confirmation_instructions] def index - @primary = current_user.email + @primary_email = current_user.email @emails = current_user.emails.order_id_desc end @@ -30,6 +30,7 @@ class Profiles::EmailsController < Profiles::ApplicationController else flash[:alert] = "There was a problem sending the confirmation email" end + redirect_to profile_emails_url end |