Permalink
Browse files

make sure nil @session doesn't mess up wsod stacktraces

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3834 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ffec8c6 commit bfbbd4c346eb6f91505f64d9f437ee32f4540d03 @jamis jamis committed Mar 10, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/flash.rb
@@ -143,7 +143,7 @@ def assign_shortcuts_with_flash(request, response) #:nodoc:
end
def process_cleanup_with_flash
- flash.sweep
+ flash.sweep if @session
process_cleanup_without_flash
end

0 comments on commit bfbbd4c

Please sign in to comment.