123456789_123456789_123456789_123456789_123456789_

Module: ActiveModel::Type::SerializeCastValue::ClassMethods

Relationships & Source Files
Defined in: activemodel/lib/active_model/type/serialize_cast_value.rb

Instance Attribute Summary

Instance Attribute Details

#serialize_cast_value_compatible?Boolean (readonly)

[ GitHub ]

  
# File 'activemodel/lib/active_model/type/serialize_cast_value.rb', line 9

def serialize_cast_value_compatible?
  return @serialize_cast_value_compatible if defined?(@serialize_cast_value_compatible)
  @serialize_cast_value_compatible = ancestors.index(instance_method(:serialize_cast_value).owner) <= ancestors.index(instance_method(:serialize).owner)
end