rails/rails — pull request #8199 by senny (2012-11-13 07:53:14+00:00)
Title: backport #8185, `#as_json` isolates options when encoding a hash.

This is a backport of #8185 to fix #8182