New automatic scope for has_many associations "OR"ing instead of "AND"ing: "with_any"
2 views
Skip to first unread message
Andy Orahood
unread,
Feb 21, 2010, 9:14:16 PM2/21/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hobo Users
I have a set of records and I want to find any records associated with any one of the set, so I added a new automatic scope called "with_any". http://pastie.org/836150
If it seems it would be useful to others I will add it to my fork with docs and send a pull req.