Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no longer uses connection (that may not be available) when determinin…

…g which adapter to use.
  • Loading branch information...
commit 6bf765d470192eb9414f68945e2bbefaa92db137 1 parent 9dcb4ad
@ctm ctm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/foreigner.rb
View
4 lib/foreigner.rb
@@ -14,8 +14,8 @@ module ConnectionAdapters
end
Base.class_eval do
- if %w(MySQL PostgreSQL).include? connection.adapter_name
+ if %w(MySQL PostgreSQL).include? connection_pool.spec.config[:adapter]
require "foreigner/connection_adapters/#{connection.adapter_name.downcase}_adapter"
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.