Method as keyword (not only fields) #47

Merged
merged 5 commits into from Feb 15, 2013

2 participants

@tmwh

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.

@mauriciozaffari

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.

@tmwh

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