Open timfong888 opened 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?
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?