{"action":"created","issue":{"url":"https://api.github.com/repos/rubysherpas/paranoia/issues/297","repository_url":"https://api.github.com/repos/rubysherpas/paranoia","labels_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/297/comments","events_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/297/events","html_url":"https://github.com/rubysherpas/paranoia/pull/297","id":126317760,"number":297,"title":"Call `add_to_transaction` on #restore! as well","user":{"login":"Empact","id":5470,"avatar_url":"https://avatars.githubusercontent.com/u/5470?v=3","gravatar_id":"","url":"https://api.github.com/users/Empact","html_url":"https://github.com/Empact","followers_url":"https://api.github.com/users/Empact/followers","following_url":"https://api.github.com/users/Empact/following{/other_user}","gists_url":"https://api.github.com/users/Empact/gists{/gist_id}","starred_url":"https://api.github.com/users/Empact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Empact/subscriptions","organizations_url":"https://api.github.com/users/Empact/orgs","repos_url":"https://api.github.com/users/Empact/repos","events_url":"https://api.github.com/users/Empact/events{/privacy}","received_events_url":"https://api.github.com/users/Empact/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T01:21:07Z","updated_at":"2016-02-08T20:35:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rubysherpas/paranoia/pulls/297","html_url":"https://github.com/rubysherpas/paranoia/pull/297","diff_url":"https://github.com/rubysherpas/paranoia/pull/297.diff","patch_url":"https://github.com/rubysherpas/paranoia/pull/297.patch"},"body":"Under certain conditions, combining the use of paranoia and\r\ncounter_culture can result in callbacks not being run. This is\r\nperhaps due to an interaction between after_commit_action and\r\nuser-defined after_commit callbacks, but unfortunately I have been\r\nunable to pin this down in tests.\r\n\r\nNote this makes restore! roughly symmetric with delete/destroy in\r\nits existing use of add_to_transaction."},"comment":{"url":"https://api.github.com/repos/rubysherpas/paranoia/issues/comments/181557492","html_url":"https://github.com/rubysherpas/paranoia/pull/297#issuecomment-181557492","issue_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/297","id":181557492,"user":{"login":"shosti","id":734316,"avatar_url":"https://avatars.githubusercontent.com/u/734316?v=3","gravatar_id":"","url":"https://api.github.com/users/shosti","html_url":"https://github.com/shosti","followers_url":"https://api.github.com/users/shosti/followers","following_url":"https://api.github.com/users/shosti/following{/other_user}","gists_url":"https://api.github.com/users/shosti/gists{/gist_id}","starred_url":"https://api.github.com/users/shosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shosti/subscriptions","organizations_url":"https://api.github.com/users/shosti/orgs","repos_url":"https://api.github.com/users/shosti/repos","events_url":"https://api.github.com/users/shosti/events{/privacy}","received_events_url":"https://api.github.com/users/shosti/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T20:35:27Z","updated_at":"2016-02-08T20:35:27Z","body":"BTW this will probably be affected by https://github.com/rubysherpas/paranoia/issues/274 (and should have a fix similar to https://github.com/rubysherpas/paranoia/pull/309)."}}