class ActiveRecord::Coders::ColumnSerializer
def load(payload)
def load(payload) if payload.nil? if @object_class != ::Object return @object_class.new end return nil end object = coder.load(payload) assert_valid_value(object, action: "load") object ||= object_class.new if object_class != Object object end