diff options
author | Amos King <amos.l.king@gmail.com> | 2008-05-29 16:49:44 -0700 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-17 18:08:56 +0100 |
commit | 1b4b8fbbd95d7d674df7f013fd88b9b7f859a6f1 (patch) | |
tree | 06a6d93c8fdfb9cc92b4090e67745c7866ba786a /actionpack/lib/action_controller | |
parent | 322f3eacf9279ae7c9f3ce2560f241c7377005dc (diff) | |
download | rails-1b4b8fbbd95d7d674df7f013fd88b9b7f859a6f1.tar.gz rails-1b4b8fbbd95d7d674df7f013fd88b9b7f859a6f1.tar.bz2 rails-1b4b8fbbd95d7d674df7f013fd88b9b7f859a6f1.zip |
verify :redirect_to => :back should redirect to the referrer. [#280 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/verification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/verification.rb b/actionpack/lib/action_controller/verification.rb index 9f606e7b7c..35b12a7f13 100644 --- a/actionpack/lib/action_controller/verification.rb +++ b/actionpack/lib/action_controller/verification.rb @@ -116,7 +116,7 @@ module ActionController #:nodoc: end def apply_redirect_to(redirect_to_option) # :nodoc: - redirect_to_option.is_a?(Symbol) ? self.send!(redirect_to_option) : redirect_to_option + (redirect_to_option.is_a?(Symbol) && redirect_to_option != :back) ? self.send!(redirect_to_option) : redirect_to_option end def apply_remaining_actions(options) # :nodoc: |