aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_case.rb
diff options
context:
space:
mode:
authorErik Michaels-Ober <sferik@gmail.com>2014-09-29 16:07:18 +0200
committerErik Michaels-Ober <sferik@gmail.com>2014-09-29 17:27:10 +0200
commite2b49b203f2cb6cef93283f14838f21bf6ffb4a2 (patch)
tree14d3101aca1464d140a824e6c859cecef425bfc8 /actionpack/lib/action_controller/test_case.rb
parent3b451fc0fd4a507016b5a6fe61bb4a8ae388c099 (diff)
downloadrails-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