title: Rails: Auto-Detecting Database Adapter
body: <p>The new version of the ar-extensions gem requires that you load the appropriate adapter yourself. On my development side I use mysql, however Heroku uses PostgreSQL.</p>
  
  <p>For example, on my development side I need to do this:</p>
  
  <pre><code>require 'ar-extensions/adapters/mysql'
  require 'ar-extensions/import/mysql'
  </code></pre>
  
  <p>How can I audo-detect which adapter to use?</p>