• pbair's avatar
    Only clear object iid when automatically set · a80724d6
    pbair authored
    Introduce an additional tracking variable in AtomicInternalId, so that
    the values will only be cleared from model objects who had it set
    automatically by the ensure_ hook. Manually set values will persist on
    the model in the instance where the save rollsback.
    a80724d6
atomic_internal_id.rb 7.29 KB