# File lib/mongoid/persistence/atomic/sets.rb, line 18 def persist prepare do value ? document[field] = value : @value = document[field] document[field].tap do collection.update(document.atomic_selector, operation("$set"), options) document.remove_change(field) end end end