Izit Izit wrote:
> Correction on my previous post.
> 
> The correct way to do it is:
> 
> Product.find_by_contents("*",{},:conditions =>search_conditions,:include 
> => [:supplier],:order =>"products.id" )
> 
> Leave out the :limit=>:all that is put in by default.

Exactly - I tried to make aaf a bit more clever by letting it assume 
:limit => :all whenever sql conditions are given, but messed it up 
somehow ;-)

It's fixed in trunk 
(http://projects.jkraemer.net/acts_as_ferret/changeset/286), or just 
apply the attached patch.

Btw, this whole thread hasn't come through to the mailing list (yet?), I 
discovered it by pure chance. Please subscribe to the ferret mailing 
list (http://rubyforge.org/mail/?group_id=1028) and post there directly 
to make sure your posting gets actually read.

Cheers,
Jens


Attachments:
http://www.ruby-forum.com/attachment/1044/fix_limit_all.diff

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to