On Tuesday, December 19, 2017 at 1:20:52 PM UTC-8, Petr Kaleta wrote: > > Hello, > Imagine we have a very simple association `article many_to_one author`, > `author one_to_many articles`. Then I'll load for example all articles at > once `Article.all` is there any way how to eager load its authors to this > array of articles after its already loaded? I know that I can do > `Article.eager(:author).all` but is there any way to do that to array of > already loaded models? >
You probably want the tactical_eager_loading plugin, which automatically does this for you. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
