aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-29 14:03:19 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-29 14:03:19 -0300
commit035cc69c48d9d538bded70fc88976cd7f23966f5 (patch)
treedb1f7ca0d8deea3063a4e19c50a0a274a07c1140 /actionpack/lib
parent06f992730efa0864a987b428774ca83ece0c0b0a (diff)
parente2b49b203f2cb6cef93283f14838f21bf6ffb4a2 (diff)
downloadrails-035cc69c48d9d538bded70fc88976cd7f23966f5.tar.gz
rails-035cc69c48d9d538bded70fc88976cd7f23966f5.tar.bz2
rails-035cc69c48d9d538bded70fc88976cd7f23966f5.zip
Merge pull request #17099 from sferik/each_key
Use Hash#each_key instead of Hash#keys.each
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/_source.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.erb
index 51660a619b..ba29e26930 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.erb
@@ -10,7 +10,7 @@
<tr>
<td>
<pre class="line_numbers">
- <% extract_source[:code].keys.each do |line_number| %>
+ <% extract_source[:code].each_key do |line_number| %>
<span><%= line_number -%></span>
<% end %>
</pre>