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

Reconcile finder options for count and find #23

Closed
squeejee opened this issue Jul 6, 2009 · 2 comments
Closed

Reconcile finder options for count and find #23

squeejee opened this issue Jul 6, 2009 · 2 comments

Comments

@squeejee
Copy link

squeejee commented Jul 6, 2009

Finder methods currently sanitize the conditions hash and map an array to a Mongo $in condition. The count method with the same arguments does not do this.

Finder options might be too heavy for count. Should we make convert_conditions public so we can call it in the count case?

@jnunemaker
Copy link
Contributor

Yeah, I ran into this too. I'll come up with a solution and push it. I have some ideas.

@jnunemaker
Copy link
Contributor

Implemented more thorough use of converting find conditions and options to mongo criteria and options. losed by 6f161df.

This issue was closed.
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

No branches or pull requests

2 participants