diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-28 17:39:51 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-28 17:39:51 -0800 |
commit | 21df2bfc4a916d5f9bbffa48fec0f08235d276b9 (patch) | |
tree | dc01b9020e85ce2f652e617c82adadb490e73450 /actionpack/lib/action_dispatch/middleware | |
parent | ea35967524797c0ae82333bdef3667ddb0934d05 (diff) | |
download | rails-21df2bfc4a916d5f9bbffa48fec0f08235d276b9.tar.gz rails-21df2bfc4a916d5f9bbffa48fec0f08235d276b9.tar.bz2 rails-21df2bfc4a916d5f9bbffa48fec0f08235d276b9.zip |
again, use Set#subtract
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/flash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb index e79050706d..d1545355f8 100644 --- a/actionpack/lib/action_dispatch/middleware/flash.rb +++ b/actionpack/lib/action_dispatch/middleware/flash.rb @@ -190,7 +190,7 @@ module ActionDispatch end # clean up after keys that could have been left over by calling reject! or shift on the flash - (@used - keys).each{ |k| @used.delete(k) } + @used.subtract(@used - keys) end # Convenience accessor for flash[:alert] |