diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-16 12:04:23 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-30 13:50:39 +0100 |
commit | 6fafad02cfa746a04281ffe4951d0d89ba322f6d (patch) | |
tree | 5be39c9f4f35066fbcd70a8cddf8ab036e3d3c42 /app/controllers/user_controller.rb | |
parent | e2820105a698d8af93c213f5df31578acda545fe (diff) |
Test for user turning email alerts off. Also includes a fix not to rely on HTTP_REFERER for subsequent redirect.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index ef013ad1e..e56c4dd33 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -588,7 +588,7 @@ class UserController < ApplicationController end @user.receive_email_alerts = params[:receive_email_alerts] @user.save! - redirect_to request.headers['HTTP_REFERER'] + redirect_to params[:came_from] end private |