This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |