This commit is contained in:
Gopesh Tulsyan 2014-08-04 09:35:58 +00:00
commit 1729faac05
5 changed files with 13 additions and 9 deletions

View file

@ -36,6 +36,7 @@ module Admin
def destroy
@user = User.find(params[:id])
@user.events.destroy_all
@user.destroy
redirect_to admin_users_path, notice: 'User got deleted'
end