module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback
Inherits From
Constants
Public instance methods
Source code GitHub
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 90
def _load(dumped)
ActiveSupport::JSON.decode(dumped)
end
Source code GitHub
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 86
def dump(object)
ActiveSupport::JSON.encode(object)
end
Source code GitHub
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 96
def dumped?(dumped)
JSON_START_WITH.match?(dumped)
end
Source code GitHub
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 82
def format
:json
end