class ActiveModel::Type::Registry

def lookup(symbol, *args)

def lookup(symbol, *args)
  registration = find_registration(symbol, *args)
  if registration
    registration.call(self, symbol, *args)
  else
    raise ArgumentError, "Unknown type #{symbol.inspect}"
  end
end