datamapper/dm-core — pull request #154 by thommahoney (2011-10-12 22:55:01+00:00)
Title: Fix for dm-mysql2-adapter loading problem

Added conditional for mysql2 adapter so that dm-mysql2-adapter isn't loaded. (the gem name is dm-mysql-adapter)

Many people are running into issues when they are using "mysql2" as the adapter in their database.yml file. The incorrect gem name is being loaded—causing rake tasks to fail.

Here is one example: http://stackoverflow.com/questions/6800284/dm-mysql2-adapter-loaderror-but-why