Skip to content

Commit

Permalink
Merge pull request #547 from Shopify/more-deprecations
Browse files Browse the repository at this point in the history
Fix another Active Record deprecation
  • Loading branch information
casperisfine authored Nov 23, 2023
2 parents 76b1a7a + c4663e9 commit 7072861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fetch_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_fetch_cache_hit_does_not_checkout_database_connection
@record.save!
record = Item.fetch(@record.id)

ActiveRecord::Base.clear_active_connections!(ActiveRecord::Base.current_role)
ActiveRecord::Base.connection_handler.clear_active_connections!(ActiveRecord::Base.current_role)

assert_equal(record, Item.fetch(@record.id))

Expand Down

0 comments on commit 7072861

Please sign in to comment.