method

detect_format

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: SerializerWithFallback
detect_format(dumped) 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/serializer_with_fallback.rb, line 33
        def detect_format(dumped)
          case
          when MessagePackWithFallback.dumped?(dumped)
            :message_pack
          when MarshalWithFallback.dumped?(dumped)
            :marshal
          when JsonWithFallback.dumped?(dumped)
            :json
          end
        end
Register or log in to add new notes.