mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
83db2337bc
commit
d6895fb8b4
2 changed files with 1 additions and 2 deletions
|
@ -13,6 +13,7 @@ module ActiveRecord
|
|||
autoload :PoolManager
|
||||
autoload :LegacyPoolManager
|
||||
autoload :SchemaCache
|
||||
autoload :Deduplicable
|
||||
|
||||
autoload_at "active_record/connection_adapters/abstract/schema_definitions" do
|
||||
autoload :IndexDefinition
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "active_record/connection_adapters/deduplicable"
|
||||
|
||||
module ActiveRecord
|
||||
# :stopdoc:
|
||||
module ConnectionAdapters
|
||||
|
|
Loading…
Reference in a new issue