# File lib/thinking_sphinx/adapters/abstract_adapter.rb, line 39
    def self.standard_adapter_for_model(model)
      case model.connection.class.name
      when "ActiveRecord::ConnectionAdapters::MysqlAdapter",
           "ActiveRecord::ConnectionAdapters::MysqlplusAdapter",
           "ActiveRecord::ConnectionAdapters::Mysql2Adapter",
           "ActiveRecord::ConnectionAdapters::NullDBAdapter"
        :mysql
      when "ActiveRecord::ConnectionAdapters::PostgreSQLAdapter"
        :postgresql
      when "ActiveRecord::ConnectionAdapters::JdbcAdapter"
        case model.connection.config[:adapter]
        when "jdbcmysql"
          :mysql
        when "jdbcpostgresql"
          :postgresql
        else
          model.connection.config[:adapter]
        end
      else
        model.connection.class.name
      end
    end