aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorPablo Herrero <pablodherrero@gmail.com>2014-11-02 21:40:47 -0300
committerPablo Herrero <pablodherrero@gmail.com>2014-11-02 21:40:47 -0300
commit0488d0021190970c894b30bd2b4b05fbeaa75f83 (patch)
tree5f4b19738f219e193e2ae2a80b18402ad133d253 /activesupport
parent999a07e3b992154e511135096c137c8666ae36b0 (diff)
downloadrails-0488d0021190970c894b30bd2b4b05fbeaa75f83.tar.gz
rails-0488d0021190970c894b30bd2b4b05fbeaa75f83.tar.bz2
rails-0488d0021190970c894b30bd2b4b05fbeaa75f83.zip
Avoid unnecessary allocations/calls
Diffstat (limited to 'activesupport')
-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