method

deserialize

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: EncryptedConfiguration
deserialize(content) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/encrypted_configuration.rb, line 98
      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
Register or log in to add new notes.