Skip to content

Conversation

joshk
Copy link
Contributor

@joshk joshk commented May 18, 2011

Hey Guys,

This corrects the ActiveResource gem and tests to work with json (with root) for 3.1.

I will add some further tests for rootless-json within the coming days.

Enjoy,

Josh

@guilleiguaran
Copy link
Member

wow, I was working on this right now. I absolutely like this but I don't know if is a good idea include it in 3.1 or wait until 3.2 because it can break some apps that rely in the fact that xml is default now

@joshk
Copy link
Contributor Author

joshk commented May 18, 2011

You can still use xml by setting self.format = :xml in your AR model.

This change is in line with the AC scaffold generators for 3.1 which default to json, if we did not change this then AC and ARes would not be in sync.

Let me know if you experience any issues and we can get them fixed..

josevalim added a commit that referenced this pull request May 18, 2011
@josevalim josevalim merged commit 505defc into rails:master May 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants