diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-03 12:14:53 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-03 12:14:53 -0200 |
commit | af9702c015caba73fa99782360b123a1debe6d81 (patch) | |
tree | b80e0574108f75a1f4e135903a2984f4aaa0b489 /activesupport | |
parent | 4259cc0c5003c26f72105419c3d60e362f539040 (diff) | |
parent | 0488d0021190970c894b30bd2b4b05fbeaa75f83 (diff) | |
download | rails-af9702c015caba73fa99782360b123a1debe6d81.tar.gz rails-af9702c015caba73fa99782360b123a1debe6d81.tar.bz2 rails-af9702c015caba73fa99782360b123a1debe6d81.zip |
Merge pull request #17487 from pabloh/avoid_allocations
Avoid unnecessary allocations and method calls
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/dependencies/autoload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies/autoload.rb b/activesupport/lib/active_support/dependencies/autoload.rb index c0dba5f7fd..13036d521d 100644 --- a/activesupport/lib/active_support/dependencies/autoload.rb +++ b/activesupport/lib/active_support/dependencies/autoload.rb @@ -67,7 +67,7 @@ module ActiveSupport end def eager_load! - @_autoloads.values.each { |file| require file } + @_autoloads.each_value { |file| require file } end def autoloads |