I am using :include => :assocation to preload data that I know will be
used later in the UI over and over. However I have data like that that
is an association of one of the associations. How would i preload that
data too?
e.g.
grant has_many :people
and
person belongs_to :group
I can’t include the :group association in a Grant.find because its not
an association of grant, but I use grant.person.group all over the place
so it hits the db every time. How can I include group in the
Grant.find?
thanks.