diff options
author | Robert Mosolgo <rdmosolgo@gmail.com> | 2018-01-26 09:41:27 -0500 |
---|---|---|
committer | Robert Mosolgo <rdmosolgo@gmail.com> | 2018-01-26 09:41:27 -0500 |
commit | d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7 (patch) | |
tree | 1d04ced3c5283ba9b7767fd427e755cbde293a27 /activesupport | |
parent | e1ed7a4717768bc5795f75e384e6f842417d3616 (diff) | |
download | rails-d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7.tar.gz rails-d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7.tar.bz2 rails-d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7.zip |
Remove duplicates after autoloading modules
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 1 |
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 |