Skip to content

Commit

Permalink
Adding another check for the Mysqlplus Adapter - spotted in a patch f…
Browse files Browse the repository at this point in the history
…rom Lourens Naudé.
  • Loading branch information
pat committed May 24, 2009
1 parent 6b3bea0 commit 4ae4b62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/thinking_sphinx.rb
Expand Up @@ -175,7 +175,8 @@ def self.jruby?
end

def self.mysql?
::ActiveRecord::Base.connection.class.name.demodulize == "MysqlAdapter" || (
::ActiveRecord::Base.connection.class.name.demodulize == "MysqlAdapter" ||
::ActiveRecord::Base.connection.class.name.demodulize == "MysqlplusAdapter" || (
jruby? && ::ActiveRecord::Base.connection.config[:adapter] == "jdbcmysql"
)
end
Expand Down

0 comments on commit 4ae4b62

Please sign in to comment.