diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-06 18:01:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-06 18:01:03 -0700 |
commit | 32f876786aa1eb718f122b116203b01ee0260113 (patch) | |
tree | 28506fb53e6e887a4b68250a567d1f737846fc51 /actionpack/lib | |
parent | 76c2ea7882a83159408bdf1f7c363f442a65c4f1 (diff) | |
download | rails-32f876786aa1eb718f122b116203b01ee0260113.tar.gz rails-32f876786aa1eb718f122b116203b01ee0260113.tar.bz2 rails-32f876786aa1eb718f122b116203b01ee0260113.zip |
getting the flash hash under test
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/flash.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb index 98dbe13438..b5194c675c 100644 --- a/actionpack/lib/action_dispatch/middleware/flash.rb +++ b/actionpack/lib/action_dispatch/middleware/flash.rb @@ -105,6 +105,10 @@ module ActionDispatch @flashes.keys end + def key?(name) + @flashes.key? name + end + def delete(key) @flashes.delete key self |