Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@CBedzz
CBedzz / destroy user method
Created August 9, 2010 17:45
UsersController destroy method
# The old version is the destroy method implemented in the UsersController
# for the admin to delete users.
# In the new version, I want to not allow the admin to delete himself.
# I was just wondering if there was a cleaner way to do it than the
# way I implemented it?
# OLD VERSION
def destroy