[Nitro] [PATCH] Allow finder method to accept arrays

Rob Pitt rob at motionpath.com
Tue Feb 14 09:01:19 EST 2006

I had a project where I was doing a lot of:


So I tried to reduct the queries by doing:


Passing it an array where it can select multiple results. This exploded
and I didn't think it should so I made this patch and you can now do

I notice the MySQL store redefines quote (mass file search) but didn't
change it so this will still explode with the MySQL store. Since nothing
is lost by this, I submit the patch anyway in the knowledge the
eminently capable Bryan Soto will probably sort this out in MySQL ;)

Includes my earlier fix to my first patch as it hasn't appeared in
glycerin yet and darcs forced me to submit it again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finder-arrays.patch.bz2
Type: application/x-bzip
Size: 4946 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060214/d44e52fc/attachment.bin 

More information about the Nitro-general mailing list