{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/26947","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/26947/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/26947/comments","events_url":"https://api.github.com/repos/rails/rails/issues/26947/events","html_url":"https://github.com/rails/rails/issues/26947","id":186435837,"number":26947,"title":"use ActiveRecord::ConnectionAdapters::ConnectionManagement","user":{"login":"ioquatix","id":30030,"avatar_url":"https://avatars.githubusercontent.com/u/30030?v=3","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-01T00:27:10Z","updated_at":"2016-12-08T23:23:31Z","closed_at":"2016-11-01T01:20:56Z","body":"### Steps to reproduce\r\n\r\nIn AR4, you could write \r\n\r\n    use ActiveRecord::ConnectionAdapters::ConnectionManagement\r\n\r\nin rack and it would manage connections correctly.\r\n\r\nThis appears to have stopped working in AR5 and I can't find any documentation explaining what to do. I've copied the source code from AR4 ConnectionManagement directly into my code for now.\r\n\r\n### Expected behavior\r\n\r\nThere should be a rack middleware to manage connections on a per-request basis.\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/265886242","html_url":"https://github.com/rails/rails/issues/26947#issuecomment-265886242","issue_url":"https://api.github.com/repos/rails/rails/issues/26947","id":265886242,"user":{"login":"ioquatix","id":30030,"avatar_url":"https://avatars.githubusercontent.com/u/30030?v=3","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T23:23:31Z","updated_at":"2016-12-08T23:23:31Z","body":"I've made a gem for this:\r\n\r\nhttps://github.com/ioquatix/activerecord-rack\r\n\r\nIf you are interested in this you might also be interested in\r\n\r\nhttps://github.com/ioquatix/activerecord-migrations\r\n\r\ntoo."}}
{"actor":{"display_login":"ioquatix"}}