Permalink
Browse files

forcing redirect back

  • Loading branch information...
erik
erik committed Jul 9, 2012
1 parent 1aa206f commit 093d5a057233199a8f7095abc836ea18f59f4ef3
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/profiles_controller.rb
@@ -5,7 +5,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('/')
+ redirect_to :back
return
end

0 comments on commit 093d5a0

Please sign in to comment.