{"action":"closed","issue":{"url":"https://api.github.com/repos/paper-trail-gem/paper_trail/issues/1151","repository_url":"https://api.github.com/repos/paper-trail-gem/paper_trail","labels_url":"https://api.github.com/repos/paper-trail-gem/paper_trail/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/paper-trail-gem/paper_trail/issues/1151/comments","events_url":"https://api.github.com/repos/paper-trail-gem/paper_trail/issues/1151/events","html_url":"https://github.com/paper-trail-gem/paper_trail/issues/1151","id":356604509,"node_id":"MDU6SXNzdWUzNTY2MDQ1MDk=","number":1151,"title":"Is there a way to wrap paper trail's persistence in a begin/rescue?","user":{"login":"jdejong","id":495819,"node_id":"MDQ6VXNlcjQ5NTgxOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/495819?v=4","gravatar_id":"","url":"https://api.github.com/users/jdejong","html_url":"https://github.com/jdejong","followers_url":"https://api.github.com/users/jdejong/followers","following_url":"https://api.github.com/users/jdejong/following{/other_user}","gists_url":"https://api.github.com/users/jdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/jdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdejong/subscriptions","organizations_url":"https://api.github.com/users/jdejong/orgs","repos_url":"https://api.github.com/users/jdejong/repos","events_url":"https://api.github.com/users/jdejong/events{/privacy}","received_events_url":"https://api.github.com/users/jdejong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-03T21:55:20Z","updated_at":"2018-09-04T18:12:07Z","closed_at":"2018-09-04T18:12:07Z","author_association":"NONE","body":"So we are having an issue where sometimes persistence into our versions table fails, but the commit into the main table succeeds but because paper_trails method threw the exception up to the main save, it causes the method to throw an exception back to the caller. \r\n\r\nI looked through the documents and I am not seeing anything that references this. Is there any way to rescue, log and continue if version operations fail and not blow up the main save?\r\n\r\nIf not I think this would be a valuable feature (the problem for me is I am stuck on v5 until we get through some refactors as we move to Rails 5).\r\n\r\nThanks in advance,\r\n\r\nJonathan"}}
{"actor":{"display_login":"jaredbeck"}}