Method as keyword (not only fields) #47

merged 5 commits into from Feb 15, 2013

2 participants


Rewrote Mongoid::Search::Util.keywords, now it can be used with methods as well.
Also, it has to work with more nesting levels than one (not only with parents, but also with grandparents), but it didn't because of mongoid's callback order (durran said he will rewrite it in 4.0.0).
I've added some tests to describe this situation.


This pull request cannot be automatically merged anymore. Please take a look and fix the conflicts.

Also, please ensure that no previous functionality is broken. After fixing it I'll merge.


Merged, also all tests are green, so I think previous functionality should not be broken.

@mauriciozaffari mauriciozaffari merged commit 9bcc7cb into mauriciozaffari:master Feb 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment