about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorShuhei Kitagawa <shuheiktgw@users.noreply.github.com>2018-06-21 10:41:49 +0900
committerYamagishi Kazutoshi <ykzts@desire.sh>2018-06-21 10:41:49 +0900
commit7f59206944193591d7aef5cbd73edc7f5303add7 (patch)
treeb61e752b7fde95d4eaf16a944f4addfd20e86858 /app/controllers
parent459394a02021ae927d135669e7472a4c7c32eaec (diff)
Replace bypass option with bypass_sign_in (#7867)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/auth/confirmations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth/confirmations_controller.rb b/app/controllers/auth/confirmations_controller.rb
index a240425cd..068e71cad 100644
--- a/app/controllers/auth/confirmations_controller.rb
+++ b/app/controllers/auth/confirmations_controller.rb
@@ -10,7 +10,7 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
     return unless request.patch? && params[:user]
     if @user.update(user_params)
       @user.skip_reconfirmation!
-      sign_in(@user, bypass: true)
+      bypass_sign_in(@user)
       redirect_to root_path, notice: I18n.t('devise.confirmations.send_instructions')
     else
       @show_errors = true