From db2023d4d2094416faa5aec7265fa21cb800b69e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 12 Feb 2006 16:35:15 +0000 Subject: [PATCH] The session should be saved even if the filter chain is stopped git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/filters.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/filters.rb b/actionpack/lib/action_controller/filters.rb index 008486751d..0a6a648885 100644 --- a/actionpack/lib/action_controller/filters.rb +++ b/actionpack/lib/action_controller/filters.rb @@ -420,7 +420,11 @@ module ActionController #:nodoc: end def process_cleanup_with_filters - process_cleanup_without_filters unless @before_filter_chain_aborted + if @before_filter_chain_aborted + close_session + else + process_cleanup_without_filters + end end end end