{"action":"closed","number":9588,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/9588","id":4480439,"html_url":"https://github.com/rails/rails/pull/9588","diff_url":"https://github.com/rails/rails/pull/9588.diff","patch_url":"https://github.com/rails/rails/pull/9588.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/9588","number":9588,"state":"closed","locked":false,"title":"Fix issue #8937 after_commit(on: :update) executed erroneously","user":{"login":"LinuxFan2718","id":671862,"avatar_url":"https://avatars.githubusercontent.com/u/671862?v=3","gravatar_id":"","url":"https://api.github.com/users/LinuxFan2718","html_url":"https://github.com/LinuxFan2718","followers_url":"https://api.github.com/users/LinuxFan2718/followers","following_url":"https://api.github.com/users/LinuxFan2718/following{/other_user}","gists_url":"https://api.github.com/users/LinuxFan2718/gists{/gist_id}","starred_url":"https://api.github.com/users/LinuxFan2718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinuxFan2718/subscriptions","organizations_url":"https://api.github.com/users/LinuxFan2718/orgs","repos_url":"https://api.github.com/users/LinuxFan2718/repos","events_url":"https://api.github.com/users/LinuxFan2718/events{/privacy}","received_events_url":"https://api.github.com/users/LinuxFan2718/received_events","type":"User","site_admin":false},"body":"We check for a state in the current ActiveRecord\r\ntransaction that causes the wrong callbacks to be\r\nexecuted, and when it occurs, call the correct\r\ncallbacks.\r\n\r\nTests lifted from\r\nhttps://github.com/rails/rails/commit/b42ea033115c1a06160e4092039d6a0fe0bda6f8","created_at":"2013-03-06T21:15:32Z","updated_at":"2015-01-02T23:40:39Z","closed_at":"2015-01-02T23:40:39Z","merged_at":null,"merge_commit_sha":"0e622635a3d44165604b0e4a47772ba7009b9594","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/9588/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/9588/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rails/rails/issues/9588/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/999277d798d5b618f81868884c59dce830c590df","head":{"label":"LinuxFan2718:update_after_commit","ref":"update_after_commit","sha":"999277d798d5b618f81868884c59dce830c590df","user":{"login":"LinuxFan2718","id":671862,"avatar_url":"https://avatars.githubusercontent.com/u/671862?v=3","gravatar_id":"","url":"https://api.github.com/users/LinuxFan2718","html_url":"https://github.com/LinuxFan2718","followers_url":"https://api.github.com/users/LinuxFan2718/followers","following_url":"https://api.github.com/users/LinuxFan2718/following{/other_user}","gists_url":"https://api.github.com/users/LinuxFan2718/gists{/gist_id}","starred_url":"https://api.github.com/users/LinuxFan2718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinuxFan2718/subscriptions","organizations_url":"https://api.github.com/users/LinuxFan2718/orgs","repos_url":"https://api.github.com/users/LinuxFan2718/repos","events_url":"https://api.github.com/users/LinuxFan2718/events{/privacy}","received_events_url":"https://api.github.com/users/LinuxFan2718/received_events","type":"User","site_admin":false},"repo":{"id":8559772,"name":"rails","full_name":"LinuxFan2718/rails","owner":{"login":"LinuxFan2718","id":671862,"avatar_url":"https://avatars.githubusercontent.com/u/671862?v=3","gravatar_id":"","url":"https://api.github.com/users/LinuxFan2718","html_url":"https://github.com/LinuxFan2718","followers_url":"https://api.github.com/users/LinuxFan2718/followers","following_url":"https://api.github.com/users/LinuxFan2718/following{/other_user}","gists_url":"https://api.github.com/users/LinuxFan2718/gists{/gist_id}","starred_url":"https://api.github.com/users/LinuxFan2718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinuxFan2718/subscriptions","organizations_url":"https://api.github.com/users/LinuxFan2718/orgs","repos_url":"https://api.github.com/users/LinuxFan2718/repos","events_url":"https://api.github.com/users/LinuxFan2718/events{/privacy}","received_events_url":"https://api.github.com/users/LinuxFan2718/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LinuxFan2718/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/LinuxFan2718/rails","forks_url":"https://api.github.com/repos/LinuxFan2718/rails/forks","keys_url":"https://api.github.com/repos/LinuxFan2718/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinuxFan2718/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinuxFan2718/rails/teams","hooks_url":"https://api.github.com/repos/LinuxFan2718/rails/hooks","issue_events_url":"https://api.github.com/repos/LinuxFan2718/rails/issues/events{/number}","events_url":"https://api.github.com/repos/LinuxFan2718/rails/events","assignees_url":"https://api.github.com/repos/LinuxFan2718/rails/assignees{/user}","branches_url":"https://api.github.com/repos/LinuxFan2718/rails/branches{/branch}","tags_url":"https://api.github.com/repos/LinuxFan2718/rails/tags","blobs_url":"https://api.github.com/repos/LinuxFan2718/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinuxFan2718/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinuxFan2718/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinuxFan2718/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinuxFan2718/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/LinuxFan2718/rails/languages","stargazers_url":"https://api.github.com/repos/LinuxFan2718/rails/stargazers","contributors_url":"https://api.github.com/repos/LinuxFan2718/rails/contributors","subscribers_url":"https://api.github.com/repos/LinuxFan2718/rails/subscribers","subscription_url":"https://api.github.com/repos/LinuxFan2718/rails/subscription","commits_url":"https://api.github.com/repos/LinuxFan2718/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinuxFan2718/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinuxFan2718/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinuxFan2718/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/LinuxFan2718/rails/contents/{+path}","compare_url":"https://api.github.com/repos/LinuxFan2718/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinuxFan2718/rails/merges","archive_url":"https://api.github.com/repos/LinuxFan2718/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinuxFan2718/rails/downloads","issues_url":"https://api.github.com/repos/LinuxFan2718/rails/issues{/number}","pulls_url":"https://api.github.com/repos/LinuxFan2718/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/LinuxFan2718/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/LinuxFan2718/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinuxFan2718/rails/labels{/name}","releases_url":"https://api.github.com/repos/LinuxFan2718/rails/releases{/id}","created_at":"2013-03-04T16:36:55Z","updated_at":"2013-03-09T21:26:17Z","pushed_at":"2013-03-06T21:11:55Z","git_url":"git://github.com/LinuxFan2718/rails.git","ssh_url":"git@github.com:LinuxFan2718/rails.git","clone_url":"https://github.com/LinuxFan2718/rails.git","svn_url":"https://github.com/LinuxFan2718/rails","homepage":"http://rubyonrails.org","size":92258,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"b956771e82166ef7ccb2e53299a6a192029b668d","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-01-02T22:57:27Z","pushed_at":"2015-01-02T22:57:27Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":369616,"stargazers_count":24468,"watchers_count":24468,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9430,"mirror_url":null,"open_issues_count":722,"forks":9430,"open_issues":722,"watchers":24468,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/9588"},"html":{"href":"https://github.com/rails/rails/pull/9588"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/9588"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/9588/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/9588/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/9588/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/999277d798d5b618f81868884c59dce830c590df"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":17,"deletions":2,"changed_files":2}}