From 0488d0021190970c894b30bd2b4b05fbeaa75f83 Mon Sep 17 00:00:00 2001 From: Pablo Herrero Date: Sun, 2 Nov 2014 21:40:47 -0300 Subject: Avoid unnecessary allocations/calls --- activesupport/lib/active_support/dependencies/autoload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3