{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/20494","labels_url":"https://api.github.com/repos/rails/rails/issues/20494/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/20494/comments","events_url":"https://api.github.com/repos/rails/rails/issues/20494/events","html_url":"https://github.com/rails/rails/pull/20494","id":86667722,"number":20494,"title":"[ActiveSupport] Fix for #20489 - ActiveSupport::Concern#class_methods affects parent classes","user":{"login":"knovoselic","id":7026420,"avatar_url":"https://avatars.githubusercontent.com/u/7026420?v=3","gravatar_id":"","url":"https://api.github.com/users/knovoselic","html_url":"https://github.com/knovoselic","followers_url":"https://api.github.com/users/knovoselic/followers","following_url":"https://api.github.com/users/knovoselic/following{/other_user}","gists_url":"https://api.github.com/users/knovoselic/gists{/gist_id}","starred_url":"https://api.github.com/users/knovoselic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knovoselic/subscriptions","organizations_url":"https://api.github.com/users/knovoselic/orgs","repos_url":"https://api.github.com/users/knovoselic/repos","events_url":"https://api.github.com/users/knovoselic/events{/privacy}","received_events_url":"https://api.github.com/users/knovoselic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-09T17:05:05Z","updated_at":"2015-06-09T17:53:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/20494","html_url":"https://github.com/rails/rails/pull/20494","diff_url":"https://github.com/rails/rails/pull/20494.diff","patch_url":"https://github.com/rails/rails/pull/20494.patch"},"body":"This PR includes a test that reproduces the issue described in #20489 and a fix for it. Here's a short explanation of the issue by @ewoutkleinsmann:\r\n\r\n> ActiveSupport::Concern's class_methods uses const_defined? without a second argument and therefore also searches its ancestors for a ClassMethods module. This results in concerns included in a child class that add class methods to a parent class.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/110445586","html_url":"https://github.com/rails/rails/pull/20494#issuecomment-110445586","issue_url":"https://api.github.com/repos/rails/rails/issues/20494","id":110445586,"user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T17:53:05Z","updated_at":"2015-06-09T17:53:05Z","body":"Tests are broken, could you take a look?"}}