From d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7 Mon Sep 17 00:00:00 2001 From: Robert Mosolgo Date: Fri, 26 Jan 2018 09:41:27 -0500 Subject: Remove duplicates after autoloading modules --- activesupport/lib/active_support/dependencies.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport') 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 -- cgit v1.2.3