"with_any": Auto scope for has_many association with OR instead of AND
Reported by Andy Orahood | February 22nd, 2010 @ 02:05 AM | in Hobo 1.1
This was something I needed and I think it would be generally useful so I added it to automatic_scopes.rb. I needed to find a record having an association to any one of a group of records. Patch: http://pastie.org/836150
Comments and changes to this ticket
-
Bryan Larsen February 22nd, 2010 @ 03:06 AM
- Milestone set to Hobo 1.1
- Tag set to enhancement, scopes
- State changed from new to open
Looks good. You can add easily add both tests & documentation in scopes.rdoctest.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »