josevalim/active_model_serializers — Issue #27: There should be an on demand feature for embedding associations
Author: carllerche
Created: 2012-01-10 18:14:07+00:00
State: open

I would like a way to specify associations in the serializer that are only embedded when an option is set to do so.

For example:

```ruby
render :json => @user, :include => [:comments]
```