limiting ORM find's

Is there a way to limit or put a condition on a find that's written
like: @customer.orders

something like, @customer.orders(:limit => 10)

Would I have to modify the model?


You can use find again with a collection descended like that:

@customer.orders.find(:all, :limit => 10) would accomplish what you want there, and it would provide the SQL necessary to make the join.

D. Taylor Singletary,

Reality Technician

easy enough