{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/1be13b794a692d0b083fb52485eb22ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1be13b794a692d0b083fb52485eb22ea","url":"https://api.github.com/users/amrnt","login":"amrnt","id":21756},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-02T14:10:37Z","closed_at":"2011-11-02T13:52:48Z","comments":3,"url":"https://api.github.com/repos/mongoid/mongoid/issues/1401","body":"","html_url":"https://github.com/mongoid/mongoid/issues/1401","number":1401,"title":"Is there any alternative to AR's after_commit?","id":2121358,"created_at":"2011-11-02T13:32:04Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/49de4cd2f26705785cbef2b15a9df7aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"49de4cd2f26705785cbef2b15a9df7aa","url":"https://api.github.com/users/nickhoffman","login":"nickhoffman","id":21668},"updated_at":"2011-11-02T14:10:37Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/2603752","body":"The *after_save* callback fires after Mongoid has finished **telling** MongoDB to save the document. It could fire before MongoDB has finished performing the operation.\r\n\r\nIf you need to ensure that MongoDB has finished performing the operation before you execute some other code, you need to use safe mode.","id":2603752,"created_at":"2011-11-02T14:10:37Z"}}