On Mar 11, 7:31 am, Mathijs <[email protected]> wrote: > Hi all, > > I'm trying Sequel and so far, I'm really impressed. > One thing that feels odd to me is that associations give back arrays > instead of datasets. > Please seehttp://gist.github.com/77488 > > I would rather have associations return datasets by default, so I > stack more filters/joins on top of them. > Is this possible somehow?
No. Sequel doesn't use proxies for associations, and for caching and eager loading to work, the association method itself needs to return an array. If you want the dataset, the association_dataset method returns it. 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 -~----------~----~----~----~------~----~------~--~---
