Skip to content

Make to_json take a parameter to exclude root #1938

merged 1 commit into from Jul 2, 2011

2 participants


This modifies to_json so that I can pass root: false. It also allows from_json to exclude the root element by passing an optional second parameter. Look good?

@josevalim josevalim merged commit 908be47 into rails:master Jul 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.