aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 19:12:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 19:12:53 +0000
commita35cf348bf918c7170ff4890d25d2d48a133edc1 (patch)
treed429702b646205dd5e1c48aeef4c2c88bcf13ce8 /actionpack/lib/action_controller/test_process.rb
parent800b86e4c7464021d07dc763c1890b1bb49dacd4 (diff)
downloadrails-a35cf348bf918c7170ff4890d25d2d48a133edc1.tar.gz
rails-a35cf348bf918c7170ff4890d25d2d48a133edc1.tar.bz2
rails-a35cf348bf918c7170ff4890d25d2d48a133edc1.zip
Added a much improved Flash module that allows for finer-grained control on expiration and allows you to flash the current action #839 [Caio Chassot]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index e3ab045a12..3d9a335eff 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -168,7 +168,7 @@ module ActionController #:nodoc:
# do we have a flash?
def has_flash?
- !session['flash'].nil?
+ !session['flash'].empty?
end
# do we have a flash that has contents?
@@ -283,4 +283,4 @@ module Test
end
end
end
-end \ No newline at end of file
+end