From ffad4927b1803765fca78241d2f368c33888c048 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 28 Dec 2011 18:21:35 -0800 Subject: mutations can't be done without the consent of our proxy object. This is one benefit of choosing composition over inheritance. --- actionpack/lib/action_dispatch/middleware/flash.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware') 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] -- cgit v1.2.3