method

detect_format

rails latest stable - Class: ActiveSupport::Messages::SerializerWithFallback
detect_format(dumped)
private

No documentation available.

# 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