From ccc0165ed78a71b52cb3cd70457623380bd04c65 Mon Sep 17 00:00:00 2001 From: Samuel Esposito Date: Fri, 21 Apr 2017 09:09:36 +0200 Subject: [PATCH] Return connection class This method is used in the `#connection_class` method and should return a class after establishing the connection --- lib/database_cleaner/active_record/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/database_cleaner/active_record/base.rb b/lib/database_cleaner/active_record/base.rb index 85bf50b..d2fe82f 100644 --- a/lib/database_cleaner/active_record/base.rb +++ b/lib/database_cleaner/active_record/base.rb @@ -69,6 +69,7 @@ module DatabaseCleaner def establish_connection ::ActiveRecord::Base.establish_connection(connection_hash) + ::ActiveRecord::Base end end