fabrik42/acts_as_api — Issue #40: Acts_as_api doesn't get the includes statement.
Author: rnaud
Created: 2011-10-11 20:12:33+00:00
State: open

Hello,

In my rails views, whenever I need to call parent items for a collection, I use includes like so.

Photo.includes(:comments).page(3)

This way each time I iterate through my photos in the view it doesn't have to do a SELECT statement to get the comments of the photo.
Acts_as_api doesn't work with include apparently and makes SELECT call for every parent or child association.

I'll look it up.