instance method
deserialize
Ruby on Rails 8.0.4
Since v5.2.8.1 PrivateSignature
deserialize(content)
No documentation comment.
Parameters
-
contentreq
Source
# File activesupport/lib/active_support/encrypted_configuration.rb, line 116
def deserialize(content)
config = YAML.respond_to?(:unsafe_load) ?
YAML.unsafe_load(content, filename: content_path) :
YAML.load(content, filename: content_path)
config.presence || {}
rescue Psych::SyntaxError
raise InvalidContentError.new(content_path)
end
Defined in activesupport/lib/active_support/encrypted_configuration.rb line 116
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedConfiguration