rails/rails — pull request #16026 by lucasmazza (2014-07-02 21:50:54+00:00)
Title: Change the JSON renderer to enforce the 'JS' Content Type

The controller can set the response format as 'JSON' before the renderer code be evaluated, so we must replace it when necessary.

Fixes #15081

/cc @rafaelfranca @josevalim