Skip to content

Commit 598e9f3

Browse files
committed
Fix clear_reloadable_connections! deprecation warning
This fixes the following warning when running Action Cable tests: ``` DEPRECATION WARNING: Calling `ActiveRecord::Base.clear_reloadable_connections! is deprecated. Please call the method directly on the connection handler; for example: `ActiveRecord::Base.connection_handler.clear_reloadable_connections!`. ```
1 parent 4d102eb commit 598e9f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actioncable/test/subscription_adapter/postgresql_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def active?
6060
assert_equal "hello world", queue.pop
6161
end
6262

63-
ActiveRecord::Base.clear_reloadable_connections!
63+
ActiveRecord::Base.connection_handler.clear_reloadable_connections!
6464

6565
assert adapter.active?
6666
end

0 commit comments

Comments
 (0)