aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-03 12:14:53 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-03 12:14:53 -0200
commitaf9702c015caba73fa99782360b123a1debe6d81 (patch)
treeb80e0574108f75a1f4e135903a2984f4aaa0b489 /activesupport/lib/active_support/dependencies
parent4259cc0c5003c26f72105419c3d60e362f539040 (diff)
parent0488d0021190970c894b30bd2b4b05fbeaa75f83 (diff)
downloadrails-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/lib/active_support/dependencies')
-rw-r--r--activesupport/lib/active_support/dependencies/autoload.rb2
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