rails/rails — pull request #8185 by senny (2012-11-12 13:35:41+00:00)
Title: `#as_json` isolates options when encoding a hash. Closes #8182

I modified the `Encoder` so that duplicates of the original `options` hash are passed around. I'm not sure if there are cases where we actually wan't the side effects but all the tests passed.

This is a fix #8182