[Rails] [ANN] Where Plugin

Jens-Christian Fischer jcf at invisible.ch
Sun Jan 1 01:01:56 GMT 2006


> I'm not crazy about that API at all.  Why not hide all that from me
> and let me do:
>
> Model.find_with_conditions(:all, :order => ....) do |where|
>   where << [:age, :gt, 30]
>   where << [:city, :like, "Zur%"]
> end

I just updated the plugin to allow for this case. ( And I dropped the  
requirement for the :gt, :lt etc symbols (just use '<', '>', etc.) )

happy new year
jc


--
InVisible GmbH, Langgrütstrasse 172, 8047 Zürich
Phone: +41 44 401 09 30
http://www.invisible.ch   http://not.invisible.ch

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2361 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060101/0b253095/smime.bin


More information about the Rails mailing list