aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-16 01:00:48 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-16 01:00:48 -0600
commit7c090509994faa19fcbd534aa78324b70b659627 (patch)
tree3ad666fb1b59de3d5fd06744729e4d77e8347c23 /actionpack/lib/action_controller/test_process.rb
parent9a733f6c640cb3c4d474ecf44dd62ab73e351fd5 (diff)
downloadrails-7c090509994faa19fcbd534aa78324b70b659627.tar.gz
rails-7c090509994faa19fcbd534aa78324b70b659627.tar.bz2
rails-7c090509994faa19fcbd534aa78324b70b659627.zip
Lazy load flash access
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index c35c3c07e8..c613d6b862 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -232,7 +232,7 @@ module ActionController #:nodoc:
# Do we have a flash?
def has_flash?
- !session['flash'].empty?
+ !flash.empty?
end
# Do we have a flash that has contents?