On Mar 18, 11:47 am, David Lee <[email protected]> wrote: > Shouldn't #each implicitly do what #all does (set up all associations) > before returning? I really think all.each and each should behave > exactly the same.
No, it shouldn't. each has always yielded each record to its block as soon as it is yielded by the adapter, and all has always consumed all records before yielding/returning. Making each act like all would cause problems. You don't need to use all.each, Dataset#all takes a block. Do you have some aversion to saving a character? ;p Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
