method
deserialize_from_json
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::Messages::Metadata
deserialize_from_json(serialized)private
No documentation available.
# 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