diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 8387a70329..8b42f1782b 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -15,7 +15,7 @@ def promote_admin flash[:error] = 'Only admins can promote other users to admins.' end end - redirect_to '/profile/' + @user.username + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{@user.username}?_=#{Time.now.to_i}" end def promote_moderator @@ -29,7 +29,7 @@ def promote_moderator flash[:error] = 'Only moderators can promote other users.' end end - redirect_to '/profile/' + @user.username + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{@user.username}?_=#{Time.now.to_i}" end def demote_basic @@ -43,7 +43,7 @@ def demote_basic flash[:error] = 'Only admins and moderators can demote other users.' end end - redirect_to '/profile/' + @user.username + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{@user.username}?_=#{Time.now.to_i}" end def reset_user_password @@ -280,7 +280,7 @@ def moderate else flash[:error] = 'Only moderators can moderate other users.' end - redirect_to '/profile/' + user.name + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{user.name}?_=#{Time.now.to_i}" end def unmoderate @@ -291,7 +291,7 @@ def unmoderate else flash[:error] = 'Only moderators can unmoderate other users.' end - redirect_to '/profile/' + user.name + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{user.name}?_=#{Time.now.to_i}" end def ban @@ -301,7 +301,7 @@ def ban else flash[:error] = 'Only moderators can ban other users.' end - redirect_to '/profile/' + user.name + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{user.name}?_=#{Time.now.to_i}" end def unban @@ -312,7 +312,7 @@ def unban else flash[:error] = 'Only moderators can unban other users.' end - redirect_to '/profile/' + user.name + '?_=' + Time.now.to_i.to_s + redirect_to "/profile/#{user.name}?_=#{Time.now.to_i}" end def users @@ -359,7 +359,7 @@ def migrate else flash[:error] = 'Only admins can migrate users.' end - redirect_to '/profile/' + du.name + redirect_to "/profile/#{du.name}" end def queue