method
deserialize
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::EncryptedConfiguration
deserialize(content)private
No documentation available.
# 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