instance method
decode
Ruby on Rails 3.0.20
Since v2.3.18 Last seen in v3.0.20Available in: v2.3.18 v3.0.20
Signature
decode(json)
No documentation comment.
Parameters
-
jsonreq
Source
# File activesupport/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
Defined in activesupport/lib/active_support/json/backends/yaml.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::JSON::Backends::Yaml