Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Comments

Try Support ActiveRecord 6.1.Z#25

Draft
matsubara0507 wants to merge 18 commits intosupport-ruby3.0from
try-support-ar6.1.Z
Draft

Try Support ActiveRecord 6.1.Z#25
matsubara0507 wants to merge 18 commits intosupport-ruby3.0from
try-support-ar6.1.Z

Conversation

@matsubara0507
Copy link

@matsubara0507 matsubara0507 commented May 17, 2024

主に以下の変更に対して対応をした

@matsubara0507 matsubara0507 self-assigned this May 17, 2024
ActiveRecord::ConnectionAdapters::ConnectionHandler.prepend(ConnectionHandlerExtension)
ActiveRecord::Associations::Preloader::Association.prepend(AssociationPreloader)
ActiveRecord::Associations::Association.prepend(Association)
ActiveRecord::Associations::Builder::Association.singleton_class.prepend(Builder::Association)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fixture_connections = []
@@already_loaded_fixtures ||= {}
@connection_subscriber = nil
@legacy_saved_pool_configs = Hash.new { |hash, key| hash[key] = {} }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legacyって何に使うっけ

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この辺りは ActiveRecord::TestFixtures で定義されてるやつを真似しただけ
rails/rails#40384

@KumatomatomaKu
Copy link

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants