User deletion

This commit is contained in:
Gopesh Tulsyan 2014-08-10 11:41:35 +05:30
parent a2b8806e35
commit 6890802a78
8 changed files with 60 additions and 9 deletions

View file

@ -54,6 +54,12 @@ class RegistrationsController < Devise::RegistrationsController
end
end
def destroy
sign_out current_user
current_user.destroy
redirect_to root_path
end
protected
def after_update_path_for(resource)