Multiple Nested Includes

I’m trying to do multiple nested includes on an AR find. Something

@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!

Just in case anyone was interested, I’ve filed a ticket

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs