diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-28 18:21:35 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-28 18:21:35 -0800 |
commit | ffad4927b1803765fca78241d2f368c33888c048 (patch) | |
tree | a006dd07c2f5a82143140a214dfad0febdeceb7b /actionpack/lib/action_dispatch/middleware | |
parent | 21df2bfc4a916d5f9bbffa48fec0f08235d276b9 (diff) | |
download | rails-ffad4927b1803765fca78241d2f368c33888c048.tar.gz rails-ffad4927b1803765fca78241d2f368c33888c048.tar.bz2 rails-ffad4927b1803765fca78241d2f368c33888c048.zip |
mutations can't be done without the consent of our proxy object. This
is one benefit of choosing composition over inheritance.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/flash.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb index d1545355f8..1b82b15511 100644 --- a/actionpack/lib/action_dispatch/middleware/flash.rb +++ b/actionpack/lib/action_dispatch/middleware/flash.rb @@ -188,9 +188,6 @@ module ActionDispatch @used.delete(k) end end - - # clean up after keys that could have been left over by calling reject! or shift on the flash - @used.subtract(@used - keys) end # Convenience accessor for flash[:alert] |