activerecord_defer_persist (0.6.0)

BetaGouv developers
2025-06-02T12:48:45Z

Defer persisting changes to the database on ActiveRecord has_many associations assignments

ActiveRecord defaults to immediately persisting changes to the database on assignments like user.session_ids = [1, 2]. This is a surprising behaviour that this gem aims to fix to be more coherent with regular assignments.