aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-16 12:04:23 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-05-16 12:04:23 +0100
commita8d085c1c366c0c0b934ccf3af801a6946155c64 (patch)
treee2541e11dbeb54b2a2c80722c7944a12369754b7 /app/controllers/user_controller.rb
parent267f1ca46e45ca75234be8db9b74cb072e0cbe06 (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.rb2
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