method

deserialize_from_json

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: Metadata
deserialize_from_json(serialized) 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/messages/metadata.rb, line 128
        def deserialize_from_json(serialized)
          ActiveSupport::JSON.decode(serialized)
        rescue ::JSON::ParserError => error
          # Throw :invalid_message_format instead of :invalid_message_serialization
          # because here a parse error is due to a bad message rather than an
          # incompatible `self.serializer`.
          throw :invalid_message_format, error
        end
Register or log in to add new notes.