1
0
Fork 0
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:
Rafael Mendonça França 2021-04-28 03:37:07 +00:00
parent 83db2337bc
commit d6895fb8b4
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948
2 changed files with 1 additions and 2 deletions

View file

@ -13,6 +13,7 @@ module ActiveRecord
autoload :PoolManager autoload :PoolManager
autoload :LegacyPoolManager autoload :LegacyPoolManager
autoload :SchemaCache autoload :SchemaCache
autoload :Deduplicable
autoload_at "active_record/connection_adapters/abstract/schema_definitions" do autoload_at "active_record/connection_adapters/abstract/schema_definitions" do
autoload :IndexDefinition autoload :IndexDefinition

View file

@ -1,7 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "active_record/connection_adapters/deduplicable"
module ActiveRecord module ActiveRecord
# :stopdoc: # :stopdoc:
module ConnectionAdapters module ConnectionAdapters