aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRobert Mosolgo <rdmosolgo@gmail.com>2018-01-26 09:41:27 -0500
committerRobert Mosolgo <rdmosolgo@gmail.com>2018-01-26 09:41:27 -0500
commitd92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7 (patch)
tree1d04ced3c5283ba9b7767fd427e755cbde293a27 /activesupport/lib
parente1ed7a4717768bc5795f75e384e6f842417d3616 (diff)
downloadrails-d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7.tar.gz
rails-d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7.tar.bz2
rails-d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7.zip
Remove duplicates after autoloading modules
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/dependencies.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index abc648e0c6..0f59558bb5 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -447,6 +447,7 @@ module ActiveSupport #:nodoc:
mod = Module.new
into.const_set const_name, mod
autoloaded_constants << qualified_name unless autoload_once_paths.include?(base_path)
+ autoloaded_constants.uniq!
mod
end