Re: Question on Rails and Lazy Loading

2015-03-19 Thread Casey Dougall
Ski reports don't change after they have been published normally. you can call them once and check dates tamp of report and cache it for the rest of the day Casey Dougall On Mar 19, 2015 8:55 PM, "Judith Dinowitz" wrote: > > We're building a ski trip planning app in Rails. A SkiLocation has on

Question on Rails and Lazy Loading

2015-03-19 Thread Judith Dinowitz
We're building a ski trip planning app in Rails. A SkiLocation has one SnowReport, is it lazy loaded? ie, if I load SkiLocation.all it won't load all the snow reports until i do like, SkiLocation.SnowReport, right? Because the key is, if it hits the Snow Report API for each ski location every time