Flowdock
method

type_incompatible_with_serialize?

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ClassMethods
type_incompatible_with_serialize?(cast_type, coder, type) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 245
          def type_incompatible_with_serialize?(cast_type, coder, type)
            cast_type.is_a?(ActiveRecord::Type::Json) && coder == ::JSON ||
              cast_type.respond_to?(:type_cast_array, true) && type == ::Array
          end
Register or log in to add new notes.