How can i lock my gradient on scaled meshes ?

This is your basic world aligned material:

When you scale the object, nothing happens to the material:

344785-ezgifcom-gif-maker.gif