Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use variable methods based on Mongo version [Fixes #379] #426

Merged
merged 1 commit into from Feb 17, 2016

Conversation

kylev
Copy link

@kylev kylev commented Feb 10, 2016

The "delete all the things" method name changed between Mongo drivers
1.x and 2.x, so detecting the new version allows us to run delete_many
rather than remove.

The "delete all the things" method name changed between Mongo drivers
1.x and 2.x, so detecting the new version allows us to run delete_many
rather than remove.
@etagwerker
Copy link
Member

@kylev Awesome, thanks! 👍

etagwerker added a commit that referenced this pull request Feb 17, 2016
Use variable methods based on Mongo version [Fixes #379]
@etagwerker etagwerker merged commit e80975e into DatabaseCleaner:master Feb 17, 2016
@etagwerker etagwerker self-assigned this Feb 17, 2016
@dblock
Copy link

dblock commented Apr 15, 2016

Can we release a newer database_cleaner please, right now the version on Rubygems just looks broken to anyone starting fresh.

@etagwerker
Copy link
Member

@dblock Sure, I'll try to do this over the weekend.

@etagwerker
Copy link
Member

@dblock 1.5.2 is out: http://databasecleaner.github.io/2016/04/17/v1-5-2-is-out/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants