Automatically saves drafts of documents in a rails app