How to stop Rails being 'helpful' with assets that don't have extension in Dev/Test

I have an image in my assets ‘image.png’

In dev and test, rails will happily give me a url for

image_url "image"

but the same code crashes in production unless it gets

image_url "image.png"

personally, I think it is profoundly unhelpful for dev to ‘hide’ something that will cause a crash even if all my tests pass. Is there a way I can disable this behaviour?

1 Like

This one has caused me problems more than once. Would love to figure out how to disable this too.