<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,8 +14,8 @@ module ActiveRecord
   end
   
   Base.class_eval do
-    if %w(MySQL PostgreSQL).include? connection.adapter_name
+    if %w(MySQL PostgreSQL).include? connection_pool.spec.config[:adapter]
       require &quot;foreigner/connection_adapters/#{connection.adapter_name.downcase}_adapter&quot;
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/foreigner.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9dcb4ad185d51aa7631d937ab72eace6754a151a</id>
    </parent>
  </parents>
  <author>
    <name>Clifford T. Matthews</name>
    <email>ctm@devctm.com</email>
  </author>
  <url>http://github.com/matthuhiggins/foreigner/commit/6bf765d470192eb9414f68945e2bbefaa92db137</url>
  <id>6bf765d470192eb9414f68945e2bbefaa92db137</id>
  <committed-date>2009-10-27T20:18:24-07:00</committed-date>
  <authored-date>2009-10-27T20:18:24-07:00</authored-date>
  <message>no longer uses connection (that may not be available) when determining which adapter to use.</message>
  <tree>615ebfcdda96b21d69586a334f5b50aadf6c7c97</tree>
  <committer>
    <name>Clifford T. Matthews</name>
    <email>ctm@devctm.com</email>
  </committer>
</commit>
