Commit 474a42cf authored by Ariejan de Vroom's avatar Ariejan de Vroom

Only load MySQL2Adapter connection fix is MySQL2 is available.

Useful for Sqlite or Postgres installations.
parent 4b96907e
module ActiveRecord::ConnectionAdapters if defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
module ActiveRecord::ConnectionAdapters
class Mysql2Adapter class Mysql2Adapter
alias_method :execute_without_retry, :execute alias_method :execute_without_retry, :execute
...@@ -14,4 +15,5 @@ module ActiveRecord::ConnectionAdapters ...@@ -14,4 +15,5 @@ module ActiveRecord::ConnectionAdapters
end end
end end
end end
end
end end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment