bmabey/database_cleaner — pull request #157 by pftg (2012-11-02 19:54:16+00:00)
Title: Model should have more priority over connection_hash for connection_class

When connection should get from model through __:model__ attribute, __load_config__ loaded and set __connection_hash__. After that for __connection_class__ instead of using model value it use __connection_hash__. All this two cases are bugs. I added fix changes to pull request:

* Skip load_config for ActiveRecord if model set.
* If model and connection_hash are set, then should return model value as connection_class instead of connection_hash builder