Closed mzikherman closed 11 years ago
Yes, definitely a bug. Thanks for reporting and documenting so clearly. Let's modify garnered_find
to take a splat, just as it does in Mongoid.
Ok, I'm attempting a fix and will hopefully have a PR soon.
Closed in https://github.com/artsy/garner/pull/63
Considering
Garner::Mixins::Mongoid::Document.garnered_find
I believe the API's for the two 'find' methods should be identical, here is a repro of an example that will cause different results between the two.Here is the garnered_find method for reference:
Assuming an emptied cache:
Or (assuming an empty cache)
Contrast with find: