diff options
author | Pablo Herrero <pablodherrero@gmail.com> | 2014-11-02 21:40:47 -0300 |
---|---|---|
committer | Pablo Herrero <pablodherrero@gmail.com> | 2014-11-02 21:40:47 -0300 |
commit | 0488d0021190970c894b30bd2b4b05fbeaa75f83 (patch) | |
tree | 5f4b19738f219e193e2ae2a80b18402ad133d253 /activesupport/lib/active_support/dependencies | |
parent | 999a07e3b992154e511135096c137c8666ae36b0 (diff) | |
download | rails-0488d0021190970c894b30bd2b4b05fbeaa75f83.tar.gz rails-0488d0021190970c894b30bd2b4b05fbeaa75f83.tar.bz2 rails-0488d0021190970c894b30bd2b4b05fbeaa75f83.zip |
Avoid unnecessary allocations/calls
Diffstat (limited to 'activesupport/lib/active_support/dependencies')
-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 |