{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/23770","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/23770/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/23770/comments","events_url":"https://api.github.com/repos/rails/rails/issues/23770/events","html_url":"https://github.com/rails/rails/pull/23770","id":134756830,"number":23770,"title":"Fix HABTM associations join table resolver bug on constants and symbols","user":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"labels":[{"id":107191,"url":"https://api.github.com/repos/rails/rails/labels/activerecord","name":"activerecord","color":"0b02e1","default":false}],"state":"open","locked":false,"assignee":{"login":"schneems","id":59744,"avatar_url":"https://avatars.githubusercontent.com/u/59744?v=3","gravatar_id":"","url":"https://api.github.com/users/schneems","html_url":"https://github.com/schneems","followers_url":"https://api.github.com/users/schneems/followers","following_url":"https://api.github.com/users/schneems/following{/other_user}","gists_url":"https://api.github.com/users/schneems/gists{/gist_id}","starred_url":"https://api.github.com/users/schneems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schneems/subscriptions","organizations_url":"https://api.github.com/users/schneems/orgs","repos_url":"https://api.github.com/users/schneems/repos","events_url":"https://api.github.com/users/schneems/events{/privacy}","received_events_url":"https://api.github.com/users/schneems/received_events","type":"User","site_admin":false},"assignees":[{"login":"schneems","id":59744,"avatar_url":"https://avatars.githubusercontent.com/u/59744?v=3","gravatar_id":"","url":"https://api.github.com/users/schneems","html_url":"https://github.com/schneems","followers_url":"https://api.github.com/users/schneems/followers","following_url":"https://api.github.com/users/schneems/following{/other_user}","gists_url":"https://api.github.com/users/schneems/gists{/gist_id}","starred_url":"https://api.github.com/users/schneems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schneems/subscriptions","organizations_url":"https://api.github.com/users/schneems/orgs","repos_url":"https://api.github.com/users/schneems/repos","events_url":"https://api.github.com/users/schneems/events{/privacy}","received_events_url":"https://api.github.com/users/schneems/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-02-19T02:49:15Z","updated_at":"2016-10-27T20:10:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/23770","html_url":"https://github.com/rails/rails/pull/23770","diff_url":"https://github.com/rails/rails/pull/23770.diff","patch_url":"https://github.com/rails/rails/pull/23770.patch"},"body":"Using Constant and symbol class_name option for associations are valid but raises exception on HABTM associations.\r\nThere was a test case which tries to cover symbol class_name usage but doesn't cover correctly. Fixed both symbol usage and constant usage as well.\r\n\r\nThese are all working as expected now;\r\n```\r\n  has_and_belongs_to_many :foos, class_name: 'Foo'\r\n  has_and_belongs_to_many :foos, class_name: :Foo\r\n  has_and_belongs_to_many :foos, class_name: Foo\r\n```\r\n\r\nCloses #23767"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/256755168","html_url":"https://github.com/rails/rails/pull/23770#issuecomment-256755168","issue_url":"https://api.github.com/repos/rails/rails/issues/23770","id":256755168,"user":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T20:10:54Z","updated_at":"2016-10-27T20:10:54Z","body":"Thanks!"}}
{"actor":{"display_login":"meinac"}}