else @user makes no sense :)

This commit is contained in:
Sam 2017-03-13 10:22:23 -04:00
parent ef24fd54ba
commit 1a745ca16a
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ class UsersController < ApplicationController
if @user.active
render_json_error(I18n.t('activation.activated'), status: 409)
else @user
else
@email_token = @user.email_tokens.unconfirmed.active.first
enqueue_activation_email
render nothing: true