nesquena/rabl — Issue #171: undefined method `cache_sources=' And mess structure in rails 2.3.14
Author: tryhendri
Created: 2012-02-20 09:08:33+00:00
State: open

Hi,

I'm working on rails 2.3.14 and using rabl version => "= 0.5.3"
I have activated rabl_init.rb, I wanted to activate cache_source but I found that cache_sources undefined.
I have checked in configuration.rb but I didn't find that method. Did I miss something ?

About the structure of the attributes for example,

```Ruby
collection @posts
attributes :id, :title, :subject
child(:user) { attributes :full_name }
node(:read) { |post| post.read_by?(@user) }
```
I got that the structure changed into

```javascript
[{ post :
{
user : { full_name : "..." },
read : true,
title: "...",
id : 5,
subject: "..."
}
}]
```
why I couldn't generate the structure like below

```Ruby
[{ post :
{
id : 5,
title: "...",
subject: "...",
user : { full_name : "..." },
read : true
}
}]
```

Thanks,