{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/25813","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/25813/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/25813/comments","events_url":"https://api.github.com/repos/rails/rails/issues/25813/events","html_url":"https://github.com/rails/rails/issues/25813","id":165330725,"number":25813,"title":"private_constant macro dosn't work with ActiveSupport::Autoload","user":{"login":"bolshakov","id":991265,"avatar_url":"https://avatars.githubusercontent.com/u/991265?v=3","gravatar_id":"","url":"https://api.github.com/users/bolshakov","html_url":"https://github.com/bolshakov","followers_url":"https://api.github.com/users/bolshakov/followers","following_url":"https://api.github.com/users/bolshakov/following{/other_user}","gists_url":"https://api.github.com/users/bolshakov/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshakov/subscriptions","organizations_url":"https://api.github.com/users/bolshakov/orgs","repos_url":"https://api.github.com/users/bolshakov/repos","events_url":"https://api.github.com/users/bolshakov/events{/privacy}","received_events_url":"https://api.github.com/users/bolshakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-13T14:10:57Z","updated_at":"2016-07-13T14:10:57Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n```ruby\r\n# File: a.rb\r\nmodule A\r\n  extend ActiveSupport::Autoload\r\n\r\n  autoload :B\r\nend\r\n```\r\n\r\n```ruby\r\n# File: a/b.rb\r\nmodule A\r\n  B = Class.new\r\n  private_constant :B\r\nend\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n```ruby\r\n>> A::B \r\nNameError: private constant A::B referenced\r\n```\r\n\r\n### Actual behavior\r\n\r\n```ruby\r\n>> A::B \r\n=> A::B \r\n```\r\n\r\n### System configuration\r\n\r\n**activesupport version**: 4.2.5\r\n\r\n**Ruby version**: 2.3\r\n"}}
{"actor":{"display_login":"bolshakov"}}