{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/25725","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/25725/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/25725/comments","events_url":"https://api.github.com/repos/rails/rails/issues/25725/events","html_url":"https://github.com/rails/rails/pull/25725","id":164164774,"number":25725,"title":"Change the behaviour of ids_writter to use find instead of where.","user":{"login":"bluehallu","id":1838241,"avatar_url":"https://avatars.githubusercontent.com/u/1838241?v=3","gravatar_id":"","url":"https://api.github.com/users/bluehallu","html_url":"https://github.com/bluehallu","followers_url":"https://api.github.com/users/bluehallu/followers","following_url":"https://api.github.com/users/bluehallu/following{/other_user}","gists_url":"https://api.github.com/users/bluehallu/gists{/gist_id}","starred_url":"https://api.github.com/users/bluehallu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluehallu/subscriptions","organizations_url":"https://api.github.com/users/bluehallu/orgs","repos_url":"https://api.github.com/users/bluehallu/repos","events_url":"https://api.github.com/users/bluehallu/events{/privacy}","received_events_url":"https://api.github.com/users/bluehallu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/activerecord","name":"activerecord","color":"0b02e1"}],"state":"open","locked":false,"assignee":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":true},"assignees":[{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":true}],"milestone":null,"comments":8,"created_at":"2016-07-06T20:20:51Z","updated_at":"2016-07-20T23:11:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/25725","html_url":"https://github.com/rails/rails/pull/25725","diff_url":"https://github.com/rails/rails/pull/25725.diff","patch_url":"https://github.com/rails/rails/pull/25725.patch"},"body":"### Summary\r\n\r\nThis will rise a RecordNotFound exception with details about what\r\nfailed rather than an unintelligible AssociationTypeMismatch\r\ncaused by where returning nils and then ActiveRecord trying to\r\ninterpret those as actuall results. \r\n\r\n### Other Information\r\n\r\nFixes #25719"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/234111892","html_url":"https://github.com/rails/rails/pull/25725#issuecomment-234111892","issue_url":"https://api.github.com/repos/rails/rails/issues/25725","id":234111892,"user":{"login":"matthewd","id":1034,"avatar_url":"https://avatars.githubusercontent.com/u/1034?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewd","html_url":"https://github.com/matthewd","followers_url":"https://api.github.com/users/matthewd/followers","following_url":"https://api.github.com/users/matthewd/following{/other_user}","gists_url":"https://api.github.com/users/matthewd/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewd/subscriptions","organizations_url":"https://api.github.com/users/matthewd/orgs","repos_url":"https://api.github.com/users/matthewd/repos","events_url":"https://api.github.com/users/matthewd/events{/privacy}","received_events_url":"https://api.github.com/users/matthewd/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T23:11:40Z","updated_at":"2016-07-20T23:11:40Z","body":"@bluehallu I imagine you'll have more luck, when the time comes, if you have a solution that makes both situations work as expected, instead of just reverting #20997 -- it is correct that the association's declared primary key may not match the one for the class, and we can't go back to just ignoring that."}}
{"actor":{"display_login":"matthewd"}}