fabrik42/acts_as_api — Issue #45: Deep associations?
Author: oleander
Created: 2011-11-26 00:23:14+00:00
State: open

I can't find anything about deep associations in the wiki.

I've this for example;

``` ruby
Gig.includes({song: [{artist: :urls}, :urls]})
```

I know how to include the first association (*song*), but how about the rest?

``` ruby
class Gig < ActiveRecord::Base
has_many :song

acts_as_api

api_accessible :my_api do |t|
t.add :song
end
end
```