Multiple database support for Mongoid 3 #149

Merged
merged 2 commits into from Sep 10, 2012

Conversation

Projects
None yet
2 participants
Contributor

look commented Sep 10, 2012

I implemented multiple database support as discussed in Pull Request #139. It is working for me.

To use:

DatabaseCleaner[:mongoid, {:connection => 'db_name'}].strategy = :truncation
DatabaseCleaner[:mongoid, {:connection => 'db_name2'}].strategy = :truncation

Luke Francl
Support for multiple databases with Mongoid 3.
To use:
DatabaseCleaner[:mongoid, {:connection => 'db_name'}].strategy = :truncation
DatabaseCleaner[:mongoid, {:connection => 'db_name2'}].strategy = :truncation
Contributor

bmabey commented Sep 10, 2012

wow, just those three lines huh? Cool. Would you mind updating the README as well?

Contributor

look commented Sep 10, 2012

Sure, how does this look?

bmabey added a commit that referenced this pull request Sep 10, 2012

Merge pull request #149 from swiftype/master
Multiple database support for Mongoid 3

@bmabey bmabey merged commit e1c3b90 into DatabaseCleaner:master Sep 10, 2012

1 check passed

default The Travis build passed
Details
Contributor

bmabey commented Sep 10, 2012

Merged in, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment