diff options
author | Nathan Broadbent <nathan.f77@gmail.com> | 2012-01-30 00:54:17 +0800 |
---|---|---|
committer | Nathan Broadbent <nathan.f77@gmail.com> | 2012-01-30 03:15:49 +0800 |
commit | b31eac56097a0bfc5f5af70de91ad261067a395f (patch) | |
tree | 940fc90f5132122e70e49cb670776f32af41bde9 /railties | |
parent | ec4440fd4e886bc491726070b9fc44938f8798ee (diff) | |
download | rails-b31eac56097a0bfc5f5af70de91ad261067a395f.tar.gz rails-b31eac56097a0bfc5f5af70de91ad261067a395f.tar.bz2 rails-b31eac56097a0bfc5f5af70de91ad261067a395f.zip |
Replaced all 'for' loops with Enumerable#each
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/rubyprof_ext.rb | 2 |
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? |