Fix confirmations_controller

This commit is contained in:
Thibaut Girka 2018-06-21 23:48:54 +02:00
parent 8bd7b9b586
commit 636973707f

View file

@ -6,12 +6,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
before_action :set_user, only: [:finish_signup]
before_action :set_pack
private
def set_pack
use_pack 'auth'
end
# GET/PATCH /users/:id/finish_signup
def finish_signup
return unless request.patch? && params[:user]
@ -26,6 +20,10 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
private
def set_pack
use_pack 'auth'
end
def set_user
@user = current_user
end