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

490 - Fix clear_active_connections deprecation in active_record 7.1 #491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yasirazgar
Copy link

Fixes: #490

Summary:
Update the conditional check here to check for AR version 7.1 instead of 7.2

DEPRECATION WARNING: Calling `ActiveRecord::Base.clear_active_connections! is deprecated. Please call the method directly on the connection handler; for example: `ActiveRecord::Base.connection_handler.clear_active_connections!`. (called from clear_active_connections! at /usr/local/bundle/gems/activerecord-7.1.5.1/lib/active_record/connection_handling.rb:320) (ActiveSupport::DeprecationException)
    from gems/graphiti-1.7.6/lib/graphiti/adapters/active_record.rb:310:in `close'
    from gems/graphiti-1.7.6/lib/graphiti/scope.rb:49:in `block (2 levels) in resolve_sideloads'
    from gems/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'

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.

Update ActiveRecord adapter for changes introduced by ActiveRecord 7.1
1 participant