taken from github.com/datamapper/dm-more/tree/master/rails_datamapper added multi repositories config