diff options
author | Marcel Molina <marcel@vernix.org> | 2007-05-06 04:17:01 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-05-06 04:17:01 +0000 |
commit | dac6aae7f87313e20e8a50b8b405c3799c4e8ffe (patch) | |
tree | 68fec7367829a06c1dc380dae821d5c2f159a932 /actionpack/lib | |
parent | 67ca9224d709e28bfd5802b1f44969d621b0ea8f (diff) | |
download | rails-dac6aae7f87313e20e8a50b8b405c3799c4e8ffe.tar.gz rails-dac6aae7f87313e20e8a50b8b405c3799c4e8ffe.tar.bz2 rails-dac6aae7f87313e20e8a50b8b405c3799c4e8ffe.zip |
Sweep flash when filter chain is halted. Closes #6175. [Caio Chassot <lists@v2studio.com>]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/filters.rb | 8 | ||||
-rw-r--r-- | actionpack/lib/action_controller/flash.rb | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/filters.rb b/actionpack/lib/action_controller/filters.rb index d87df2577c..58f0ca491d 100644 --- a/actionpack/lib/action_controller/filters.rb +++ b/actionpack/lib/action_controller/filters.rb @@ -672,7 +672,6 @@ module ActionController #:nodoc: base.class_eval do alias_method_chain :perform_action, :filters alias_method_chain :process, :filters - alias_method_chain :process_cleanup, :filters end end @@ -748,13 +747,6 @@ module ActionController #:nodoc: call_filters(self.class.filter_chain, 0, 0) end - def process_cleanup_with_filters - if @before_filter_chain_aborted - close_session - else - process_cleanup_without_filters - end - end end end end diff --git a/actionpack/lib/action_controller/flash.rb b/actionpack/lib/action_controller/flash.rb index 2544db2fda..534c74745e 100644 --- a/actionpack/lib/action_controller/flash.rb +++ b/actionpack/lib/action_controller/flash.rb @@ -63,7 +63,7 @@ module ActionController #:nodoc: end def update(h) #:nodoc: - h.keys.each{ |k| discard(k) } + h.keys.each { |k| keep(k) } super end |