rails/rails — pull request #9369 by dpogue (2013-02-22 01:19:35+00:00)
Title: Use model connection for fixtures

This change fixes a problem where fixtures in multiple databases didn't work due to everything using ActiveRecord::Base.connection.
With this change, that now uses the connection of the model class.

If a class is passed to Fixture.new, it will inherit the table name and database connection from that class.

This functionality already existed, but wasn't being used because the model class was always being passed in as a string.