DEV Community

Cover image for ActiveStorage - default conf is wrong?
fedeagripa
fedeagripa

Posted on

ActiveStorage - default conf is wrong?

Lately I been working a lot with ActiveStorage and I found that every-time I try to edit my content (images, videos, etc) they are overwritten O_o, yes WHAT?

But if you just change your config to:
config.active_storage.replace_on_assign_to_many = false

Now you have what I understand as a normal behaviour, you can do a standard Update according CRUD.

I believe this was done like this just because it was simple, but do you consider it wrong also?

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay