{"action":"created","issue":{"url":"https://api.github.com/repos/igrigorik/em-synchrony/issues/201","repository_url":"https://api.github.com/repos/igrigorik/em-synchrony","labels_url":"https://api.github.com/repos/igrigorik/em-synchrony/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/igrigorik/em-synchrony/issues/201/comments","events_url":"https://api.github.com/repos/igrigorik/em-synchrony/issues/201/events","html_url":"https://github.com/igrigorik/em-synchrony/issues/201","id":128254328,"number":201,"title":"em-synchrony 1.0.3 and 1.0.4 do not work with ActiveRecord 5.0","user":{"login":"zdennis","id":967,"avatar_url":"https://avatars.githubusercontent.com/u/967?v=3","gravatar_id":"","url":"https://api.github.com/users/zdennis","html_url":"https://github.com/zdennis","followers_url":"https://api.github.com/users/zdennis/followers","following_url":"https://api.github.com/users/zdennis/following{/other_user}","gists_url":"https://api.github.com/users/zdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/zdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdennis/subscriptions","organizations_url":"https://api.github.com/users/zdennis/orgs","repos_url":"https://api.github.com/users/zdennis/repos","events_url":"https://api.github.com/users/zdennis/events{/privacy}","received_events_url":"https://api.github.com/users/zdennis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-22T21:48:10Z","updated_at":"2016-05-09T10:27:12Z","closed_at":null,"body":"For both em-synchrony 1.0.3 and 1.0.4 I get the same `undefined local variable or method 'current_connection_id'` error with `activerecord 5.0.0.beta1`.\r\n\r\n```\r\n/Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/em-synchrony-1.0.3/lib/em-synchrony/activerecord.rb:12:in `block in connection': undefined local variable or method `current_connection_id' for #<ActiveRecord::ConnectionAdapters::ConnectionPool:0x007f9d888a4378> (NameError)\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/em-synchrony-1.0.3/lib/em-synchrony/thread.rb:63:in `synchronize'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/em-synchrony-1.0.3/lib/em-synchrony/activerecord.rb:11:in `connection'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/connection_adapters/abstract/connection_pool.rb:879:in `retrieve_connection'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/connection_handling.rb:113:in `retrieve_connection'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/connection_handling.rb:87:in `connection'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/migration.rb:800:in `connection'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/migration.rb:807:in `block in method_missing'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/migration.rb:786:in `block in say_with_time'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:288:in `measure'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/migration.rb:786:in `say_with_time'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/migration.rb:806:in `method_missing'\r\n\tfrom /Users/zdennis/source/opensource_projects/activerecord-import/test/schema/generic_schema.rb:3:in `block in <top (required)>'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/schema.rb:48:in `instance_eval'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/schema.rb:48:in `define'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.beta1/lib/active_record/schema.rb:44:in `define'\r\n\tfrom /Users/zdennis/source/opensource_projects/activerecord-import/test/schema/generic_schema.rb:1:in `<top (required)>'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:302:in `require'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:302:in `block in require'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:268:in `load_dependency'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:302:in `require'\r\n\tfrom /Users/zdennis/source/opensource_projects/activerecord-import/test/test_helper.rb:50:in `<top (required)>'\r\n\tfrom /Users/zdennis/source/opensource_projects/activerecord-import/test/import_test.rb:1:in `require'\r\n\tfrom /Users/zdennis/source/opensource_projects/activerecord-import/test/import_test.rb:1:in `<top (required)>'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:15:in `require'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:15:in `block in <main>'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:4:in `select'\r\n\tfrom /Users/zdennis/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb:4:in `<main>'\r\nrake aborted!\r\n```\r\n\r\nI pulled down em-synchrony to add a patch, but after bundling and trying to run the test suite ruby 2.2.3 segfaulted."},"comment":{"url":"https://api.github.com/repos/igrigorik/em-synchrony/issues/comments/217829491","html_url":"https://github.com/igrigorik/em-synchrony/issues/201#issuecomment-217829491","issue_url":"https://api.github.com/repos/igrigorik/em-synchrony/issues/201","id":217829491,"user":{"login":"Xanders","id":383777,"avatar_url":"https://avatars.githubusercontent.com/u/383777?v=3","gravatar_id":"","url":"https://api.github.com/users/Xanders","html_url":"https://github.com/Xanders","followers_url":"https://api.github.com/users/Xanders/followers","following_url":"https://api.github.com/users/Xanders/following{/other_user}","gists_url":"https://api.github.com/users/Xanders/gists{/gist_id}","starred_url":"https://api.github.com/users/Xanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xanders/subscriptions","organizations_url":"https://api.github.com/users/Xanders/orgs","repos_url":"https://api.github.com/users/Xanders/repos","events_url":"https://api.github.com/users/Xanders/events{/privacy}","received_events_url":"https://api.github.com/users/Xanders/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T10:27:12Z","updated_at":"2016-05-09T10:27:12Z","body":"@dgutov Is there any other way to create PR with code using code from other PR except of copy-paste all of that code? I don't understand what the problem now, sorry."}}