From b31eac56097a0bfc5f5af70de91ad261067a395f Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 30 Jan 2012 00:54:17 +0800 Subject: Replaced all 'for' loops with Enumerable#each --- railties/lib/rails/rubyprof_ext.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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? -- cgit v1.2.3