For arguments sake, lets say I have legs as my object. I'm trying to call as_json on it and include all associations - which are set up correctly as it works perfectly in the console.
This is what I have:
@legs.as_json(
:include => {
:shoes => {
:include => {
:left_shoe => {
:include => {
:shoe_lace => {:include => :sock}
}
}
},
:right_shoe => {
:include => {
:shoe_lace => {:include => :sock}
}
}
}
}
)
For some reason it's not including right_shoe. It just stops at left_shoe. Any ideas?