Skip to content

Commit

Permalink
gives an explicit return of ActiveRecord::Base for establish connection
Browse files Browse the repository at this point in the history
instead of what ActiveRecord::Base.establish_connection returns
  • Loading branch information
Avery Wilkening authored and etagwerker committed Apr 19, 2018
1 parent 21bd4d0 commit 986d198
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/database_cleaner/active_record/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def lookup_from_connection_pool

def establish_connection
::ActiveRecord::Base.establish_connection(connection_hash)
::ActiveRecord::Base
end

end
Expand Down

0 comments on commit 986d198

Please sign in to comment.