Class: ActionAuth::UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/action_auth/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



5
6
7
8
# File 'app/controllers/action_auth/users_controller.rb', line 5

def destroy
  Current.user.destroy
  redirect_to main_app.root_url, notice: "Your account has been deleted."
end