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 -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/6ab2adec-55d7-4929-b141-7107c2db4d58%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
