Permalink
Browse files

adding return to the action

  • Loading branch information...
1 parent 829892a commit 1aa206f24b258ecb75c2894ec51c66495c0abfd9 erik committed Jul 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/profiles_controller.rb
@@ -6,6 +6,7 @@ class ProfilesController < ApplicationController
def ban
@profile.update_attributes({:is_banned => true}) if current_user && current_user.is_a?(Admin) && @profile
redirect_back_or_default('/')
+ return
end
private

0 comments on commit 1aa206f

Please sign in to comment.