I want to record the user who last updated a document and the time of modification.
What's the best practice for to update my model object's updated_at timestamp?
I'd like to do this in the Sync Gateway's mapping function, so that my application(s) doesn't have to implement this, and to simplify my application's update logic.
If this isn't advisable, where should I do this? CBLModel:willSave:?
And is there a way to get the current user used by the replicator? Or should I just store this myself on my datastore object?
Thanks,
Drew