Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try Support ActiveRecord 6.1.Z #25

Draft
wants to merge 18 commits into
base: support-ruby3.0
Choose a base branch
from

Conversation

matsubara0507
Copy link

@matsubara0507 matsubara0507 commented May 17, 2024

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

@matsubara0507 matsubara0507 self-assigned this May 17, 2024
@@ -32,6 +32,7 @@ module ActiveRecordExt
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.

👍

@@ -83,16 +83,11 @@ def setup_fixtures(config = ActiveRecord::Base)
@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants