app/controllers/users/confirmations_controller.rb
# typed: strict
# frozen_string_literal: true
module Users
class ConfirmationsController < Devise::ConfirmationsController
extend T::Sig
# For sorbet
include Devise::Controllers::Helpers
# GET /resource/confirmation/new
# def new
# super
# end
# POST /resource/confirmation
# def create
# super
# end
# GET /resource/confirmation?confirmation_token=abcdef
# def show
# super
# end
protected
# The path used after resending confirmation instructions.
# def after_resending_confirmation_instructions_path_for(resource_name)
# super(resource_name)
# end
# The path used after confirmation.
sig { params(_resource_name: Symbol, resource: User).returns(String) }
def after_confirmation_path_for(_resource_name, resource)
sign_in(resource)
after_sign_in_path_for(resource)
end
end
end