mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-20 05:16:04 +01:00
10 lines
403 B
Ruby
10 lines
403 B
Ruby
class User::RegistrationsController < Devise::RegistrationsController
|
|
|
|
def destroy
|
|
DeletionWorker.perform_async(resource.id)
|
|
Devise.sign_out_all_scopes ? sign_out : sign_out(resource_name)
|
|
set_flash_message :notice, :destroyed if is_flashing_format?
|
|
yield resource if block_given?
|
|
respond_with_navigational(resource){ redirect_to after_sign_out_path_for(resource_name) }
|
|
end
|
|
end
|