I’m trying to do multiple nested includes on an AR find. Something
like:
@result = User.find_by_id(id, :include => [:something, [:nest_1 =>
[:a, :b]], [:nest_2 => [:c, :d]]])
Unfortunately when I view my logs, it seems like only the first include
actually works. Referencing anything from @result.nest_2, triggers a db
call. Has anyone experienced a similar issue, or have any hints to
something I could be doing wrong?
(I’m running rails 1.2.2.)
Any help would be greatly appreciated!