diff options
author | Erik Michaels-Ober <sferik@gmail.com> | 2014-09-29 16:07:18 +0200 |
---|---|---|
committer | Erik Michaels-Ober <sferik@gmail.com> | 2014-09-29 17:27:10 +0200 |
commit | e2b49b203f2cb6cef93283f14838f21bf6ffb4a2 (patch) | |
tree | 14d3101aca1464d140a824e6c859cecef425bfc8 /actionpack/lib/action_controller/test_case.rb | |
parent | 3b451fc0fd4a507016b5a6fe61bb4a8ae388c099 (diff) | |
download | rails-e2b49b203f2cb6cef93283f14838f21bf6ffb4a2.tar.gz rails-e2b49b203f2cb6cef93283f14838f21bf6ffb4a2.tar.bz2 rails-e2b49b203f2cb6cef93283f14838f21bf6ffb4a2.zip |
Use Hash#each_key instead of Hash#keys.each
Hash#keys.each allocates an array of keys; Hash#each_key iterates through the
keys without allocating a new array. This is the reason why Hash#each_key
exists.
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
0 files changed, 0 insertions, 0 deletions