Skip to content

Commit d6895fb

Browse files
committed
Register autload for Deduplicable
This module is used in many classes but only required in one of them. Depending in the load order, it could be undefined before its first use. Instead of adding requires to every single files that use it I registered an autoload entry for it.
1 parent 83db233 commit d6895fb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

activerecord/lib/active_record/connection_adapters.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module ConnectionAdapters
1313
autoload :PoolManager
1414
autoload :LegacyPoolManager
1515
autoload :SchemaCache
16+
autoload :Deduplicable
1617

1718
autoload_at "active_record/connection_adapters/abstract/schema_definitions" do
1819
autoload :IndexDefinition

activerecord/lib/active_record/connection_adapters/sql_type_metadata.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_record/connection_adapters/deduplicable"
4-
53
module ActiveRecord
64
# :stopdoc:
75
module ConnectionAdapters

0 commit comments

Comments
 (0)