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

Merged
merged 1 commit into from Nov 13, 2012

Projects

None yet

2 participants

@senny
Member
senny commented Nov 13, 2012

This is a backport of #8185 to fix #8182

@senny senny backport #8185, `#as_json` isolates options when encoding a hash.
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
be79632
@senny
Member
senny commented Nov 13, 2012

@carlosantoniodasilva could you review this please?

@carlosantoniodasilva carlosantoniodasilva merged commit 3e53fe6 into rails:3-2-stable Nov 13, 2012
@carlosantoniodasilva

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment