aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/rubyprof_ext.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-01-29 11:30:37 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2012-01-29 11:30:37 -0800
commitdfa0c36204beb1b519962a6a49a1ebbed91015dd (patch)
tree2794ed0b8dd33458d2509ddd974519df9f561c8b /railties/lib/rails/rubyprof_ext.rb
parent677e06c20f6df6c44f44af9ba95390558e67a9bc (diff)
parentbf928bc7329640969917eb680da4de959b7156b7 (diff)
downloadrails-dfa0c36204beb1b519962a6a49a1ebbed91015dd.tar.gz
rails-dfa0c36204beb1b519962a6a49a1ebbed91015dd.tar.bz2
rails-dfa0c36204beb1b519962a6a49a1ebbed91015dd.zip
Merge pull request #4744 from ndbroadbent/replace_for_loops_with_enumerables
Replaced all 'for' loops with Enumerable#each
Diffstat (limited to 'railties/lib/rails/rubyprof_ext.rb')
-rw-r--r--railties/lib/rails/rubyprof_ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/rubyprof_ext.rb b/railties/lib/rails/rubyprof_ext.rb
index f6e90357ce..017eba3a76 100644
--- a/railties/lib/rails/rubyprof_ext.rb
+++ b/railties/lib/rails/rubyprof_ext.rb
@@ -12,7 +12,7 @@ module Prof #:nodoc:
io.puts " time seconds seconds calls ms/call ms/call name"
sum = 0.0
- for r in results
+ results.each do |r|
sum += r.self_time
name = if r.method_class.nil?