binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.4k stars 133 forks source link

How can I use searchlogic with :through associations? #125

Open timfong888 opened 13 years ago

timfong888 commented 13 years ago

I have a Company that has_many ContactEmails :through => :contacts

I want to do a search on Company.contact_emails.this_week

Where this_week is a named-scope defined for contact_emails...

I then went to use OR across those...can I do it when the association is :through?