Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport #8185, #as_json isolates options when encoding a hash. #8199

Merged
merged 1 commit into from Nov 13, 2012

Conversation

senny
Copy link
Member

@senny senny commented Nov 13, 2012

This is a backport of #8185 to fix #8182

Setting options in a custom `#as_json` method had side effects.
Modifications of the `options` hash leaked outside and influenced
the conversion of other objects contained in the hash.

Conflicts:

	activesupport/CHANGELOG.md
@senny
Copy link
Member Author

senny commented Nov 13, 2012

@carlosantoniodasilva could you review this please?

carlosantoniodasilva added a commit that referenced this pull request Nov 13, 2012
backport #8185, `#as_json` isolates options when encoding a hash.
@carlosantoniodasilva carlosantoniodasilva merged commit 3e53fe6 into rails:3-2-stable Nov 13, 2012
@carlosantoniodasilva
Copy link
Member

Thanks.

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.

None yet

2 participants