it should be relatively straight forward to replace write_attributes to the now available assign_attributes,
then pass the option along to to assign_attributes call ?
https://github.com/mongoid/mongoid/blob/master/lib/mongoid/persistence.rb#L114
Thanks!!