Skip to content

Commit

Permalink
changed deleted update message to say Deleted instead of Baleeted
Browse files Browse the repository at this point in the history
  • Loading branch information
markzalar authored and carols10cents committed Jan 16, 2012
1 parent 6895f6b commit 236fa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/updates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def create
def destroy
update = Update.first :id => params[:id]

# lolsecurity.
# security.
if update.author == current_user.author
update.destroy

flash[:notice] = "Update Baleeted!"
flash[:notice] = "Update Deleted!"
redirect_to root_path
else
flash[:notice] = "I'm afraid I can't let you do that, #{current_user.name}."
Expand Down

0 comments on commit 236fa20

Please sign in to comment.