Module: ActionController::Renderers::DeprecatedEscapeJsonResponses

Defined in:
actionpack/lib/action_controller/metal/renderers.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#escape_json_responses=(value) ⇒ Object



31
32
33
34
35
36
37
38
39
# File 'actionpack/lib/action_controller/metal/renderers.rb', line 31

def escape_json_responses=(value)
  if value
    ActionController.deprecator.warn(<<~MSG.squish)
      Setting action_controller.escape_json_responses = true is deprecated and will have no effect in Rails 8.2.
      Set it to `false`, or remove the config.
    MSG
  end
  super
end