Module: ActiveSupport::JSON::Backends::Yaml

Extended by:
Yaml
Included in:
Yaml
Defined in:
lib/active_support/json/backends/yaml.rb

Constant Summary collapse

ParseError =
::StandardError
EXCEPTIONS =

:nodoc:

[::ArgumentError]

Instance Method Summary collapse

Instance Method Details

#decode(json) ⇒ Object



12
13
14
# File 'lib/active_support/json/backends/yaml.rb', line 12

def decode(json)
  raise "Warning: The Yaml backend has been deprecated due to security risks, you should set ActiveSupport::JSON.backend = 'OkJson'"
end