Skip to content

Commit c555ecf

Browse files
committed
use up to date mechanism to get configuration_hash
1 parent 68ecd84 commit c555ecf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/test_helper.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ def with_connection_removed
171171
end
172172

173173
def self.current_connection_config
174-
if ActiveRecord::Base.respond_to?(:connection_config)
175-
ActiveRecord::Base.connection_db_config.configuration_hash
176-
else
177-
ActiveRecord::Base.connection_pool.spec.config
178-
end
174+
ActiveRecord::Base.connection.pool.db_config.configuration_hash
179175
end
180176

181177
def current_connection_config; self.class.current_connection_config; end

0 commit comments

Comments
 (0)