Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Jul 9, 2012
1 parent fff4388 commit 0186e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/profiles_controller.rb
Expand Up @@ -12,7 +12,7 @@ def ban


def unban def unban
user = User.find(params[:id]) user = User.find(params[:id])
user.update_attributes(:is_banned, false) if current_user && current_user.is_a?(Admin) && user user.update_attribute(:is_banned, false) if current_user && current_user.is_a?(Admin) && user
redirect_to :back redirect_to :back
return return
end end
Expand Down

0 comments on commit 0186e00

Please sign in to comment.