{"action":"created","comment":{"url":"https://api.github.com/repos/abak-press/slaver/pulls/comments/42737543","id":42737543,"diff_hunk":"@@ -95,7 +94,11 @@ def clear_config\n       end\n \n       def pools\n-        @pools ||= {}\n+        self == ::ActiveRecord::Base ? @pools ||= {} : ::ActiveRecord::Base.pools","path":"lib/slaver/connection.rb","position":13,"original_position":13,"commit_id":"6b1b2c68336a3f06ccac8f5975c6ece076574581","original_commit_id":"09b4241458e8369393432b0674c8e8427bfd236b","user":{"login":"Napolskih","id":1475358,"avatar_url":"https://avatars.githubusercontent.com/u/1475358?v=3","gravatar_id":"","url":"https://api.github.com/users/Napolskih","html_url":"https://github.com/Napolskih","followers_url":"https://api.github.com/users/Napolskih/followers","following_url":"https://api.github.com/users/Napolskih/following{/other_user}","gists_url":"https://api.github.com/users/Napolskih/gists{/gist_id}","starred_url":"https://api.github.com/users/Napolskih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napolskih/subscriptions","organizations_url":"https://api.github.com/users/Napolskih/orgs","repos_url":"https://api.github.com/users/Napolskih/repos","events_url":"https://api.github.com/users/Napolskih/events{/privacy}","received_events_url":"https://api.github.com/users/Napolskih/received_events","type":"User","site_admin":false},"body":"ты не давно на руби программируешь?","created_at":"2015-10-22T11:36:26Z","updated_at":"2015-10-22T11:36:26Z","html_url":"https://github.com/abak-press/slaver/pull/2#discussion_r42737543","pull_request_url":"https://api.github.com/repos/abak-press/slaver/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/abak-press/slaver/pulls/comments/42737543"},"html":{"href":"https://github.com/abak-press/slaver/pull/2#discussion_r42737543"},"pull_request":{"href":"https://api.github.com/repos/abak-press/slaver/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/abak-press/slaver/pulls/2","id":48425711,"html_url":"https://github.com/abak-press/slaver/pull/2","diff_url":"https://github.com/abak-press/slaver/pull/2.diff","patch_url":"https://github.com/abak-press/slaver/pull/2.patch","issue_url":"https://api.github.com/repos/abak-press/slaver/issues/2","number":2,"state":"open","locked":false,"title":"feature: yeild all classses on AR","user":{"login":"deniskorobicyn","id":8044172,"avatar_url":"https://avatars.githubusercontent.com/u/8044172?v=3","gravatar_id":"","url":"https://api.github.com/users/deniskorobicyn","html_url":"https://github.com/deniskorobicyn","followers_url":"https://api.github.com/users/deniskorobicyn/followers","following_url":"https://api.github.com/users/deniskorobicyn/following{/other_user}","gists_url":"https://api.github.com/users/deniskorobicyn/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskorobicyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskorobicyn/subscriptions","organizations_url":"https://api.github.com/users/deniskorobicyn/orgs","repos_url":"https://api.github.com/users/deniskorobicyn/repos","events_url":"https://api.github.com/users/deniskorobicyn/events{/privacy}","received_events_url":"https://api.github.com/users/deniskorobicyn/received_events","type":"User","site_admin":false},"body":"now it will be possiple to write\r\n\r\n```ruby\r\nActiveRecord::Base.within(:other) do\r\n  Foo.create\r\n  Bar.create\r\nend\r\n```","created_at":"2015-10-22T07:34:47Z","updated_at":"2015-10-22T11:36:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9071e45d458fa82978a07411486947310b9941c3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/abak-press/slaver/pulls/2/commits","review_comments_url":"https://api.github.com/repos/abak-press/slaver/pulls/2/comments","review_comment_url":"https://api.github.com/repos/abak-press/slaver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abak-press/slaver/issues/2/comments","statuses_url":"https://api.github.com/repos/abak-press/slaver/statuses/6b1b2c68336a3f06ccac8f5975c6ece076574581","head":{"label":"deniskorobicyn:slaver_step_two","ref":"slaver_step_two","sha":"6b1b2c68336a3f06ccac8f5975c6ece076574581","user":{"login":"deniskorobicyn","id":8044172,"avatar_url":"https://avatars.githubusercontent.com/u/8044172?v=3","gravatar_id":"","url":"https://api.github.com/users/deniskorobicyn","html_url":"https://github.com/deniskorobicyn","followers_url":"https://api.github.com/users/deniskorobicyn/followers","following_url":"https://api.github.com/users/deniskorobicyn/following{/other_user}","gists_url":"https://api.github.com/users/deniskorobicyn/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskorobicyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskorobicyn/subscriptions","organizations_url":"https://api.github.com/users/deniskorobicyn/orgs","repos_url":"https://api.github.com/users/deniskorobicyn/repos","events_url":"https://api.github.com/users/deniskorobicyn/events{/privacy}","received_events_url":"https://api.github.com/users/deniskorobicyn/received_events","type":"User","site_admin":false},"repo":{"id":44529961,"name":"slaver","full_name":"deniskorobicyn/slaver","owner":{"login":"deniskorobicyn","id":8044172,"avatar_url":"https://avatars.githubusercontent.com/u/8044172?v=3","gravatar_id":"","url":"https://api.github.com/users/deniskorobicyn","html_url":"https://github.com/deniskorobicyn","followers_url":"https://api.github.com/users/deniskorobicyn/followers","following_url":"https://api.github.com/users/deniskorobicyn/following{/other_user}","gists_url":"https://api.github.com/users/deniskorobicyn/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskorobicyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskorobicyn/subscriptions","organizations_url":"https://api.github.com/users/deniskorobicyn/orgs","repos_url":"https://api.github.com/users/deniskorobicyn/repos","events_url":"https://api.github.com/users/deniskorobicyn/events{/privacy}","received_events_url":"https://api.github.com/users/deniskorobicyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deniskorobicyn/slaver","description":"","fork":true,"url":"https://api.github.com/repos/deniskorobicyn/slaver","forks_url":"https://api.github.com/repos/deniskorobicyn/slaver/forks","keys_url":"https://api.github.com/repos/deniskorobicyn/slaver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deniskorobicyn/slaver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deniskorobicyn/slaver/teams","hooks_url":"https://api.github.com/repos/deniskorobicyn/slaver/hooks","issue_events_url":"https://api.github.com/repos/deniskorobicyn/slaver/issues/events{/number}","events_url":"https://api.github.com/repos/deniskorobicyn/slaver/events","assignees_url":"https://api.github.com/repos/deniskorobicyn/slaver/assignees{/user}","branches_url":"https://api.github.com/repos/deniskorobicyn/slaver/branches{/branch}","tags_url":"https://api.github.com/repos/deniskorobicyn/slaver/tags","blobs_url":"https://api.github.com/repos/deniskorobicyn/slaver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deniskorobicyn/slaver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deniskorobicyn/slaver/git/refs{/sha}","trees_url":"https://api.github.com/repos/deniskorobicyn/slaver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deniskorobicyn/slaver/statuses/{sha}","languages_url":"https://api.github.com/repos/deniskorobicyn/slaver/languages","stargazers_url":"https://api.github.com/repos/deniskorobicyn/slaver/stargazers","contributors_url":"https://api.github.com/repos/deniskorobicyn/slaver/contributors","subscribers_url":"https://api.github.com/repos/deniskorobicyn/slaver/subscribers","subscription_url":"https://api.github.com/repos/deniskorobicyn/slaver/subscription","commits_url":"https://api.github.com/repos/deniskorobicyn/slaver/commits{/sha}","git_commits_url":"https://api.github.com/repos/deniskorobicyn/slaver/git/commits{/sha}","comments_url":"https://api.github.com/repos/deniskorobicyn/slaver/comments{/number}","issue_comment_url":"https://api.github.com/repos/deniskorobicyn/slaver/issues/comments{/number}","contents_url":"https://api.github.com/repos/deniskorobicyn/slaver/contents/{+path}","compare_url":"https://api.github.com/repos/deniskorobicyn/slaver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deniskorobicyn/slaver/merges","archive_url":"https://api.github.com/repos/deniskorobicyn/slaver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deniskorobicyn/slaver/downloads","issues_url":"https://api.github.com/repos/deniskorobicyn/slaver/issues{/number}","pulls_url":"https://api.github.com/repos/deniskorobicyn/slaver/pulls{/number}","milestones_url":"https://api.github.com/repos/deniskorobicyn/slaver/milestones{/number}","notifications_url":"https://api.github.com/repos/deniskorobicyn/slaver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deniskorobicyn/slaver/labels{/name}","releases_url":"https://api.github.com/repos/deniskorobicyn/slaver/releases{/id}","created_at":"2015-10-19T11:25:16Z","updated_at":"2015-10-19T14:23:03Z","pushed_at":"2015-10-22T11:34:56Z","git_url":"git://github.com/deniskorobicyn/slaver.git","ssh_url":"git@github.com:deniskorobicyn/slaver.git","clone_url":"https://github.com/deniskorobicyn/slaver.git","svn_url":"https://github.com/deniskorobicyn/slaver","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abak-press:master","ref":"master","sha":"218167767bbee8d2b3aabf5fa263a614cf7b1d69","user":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"repo":{"id":44529825,"name":"slaver","full_name":"abak-press/slaver","owner":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abak-press/slaver","description":"","fork":false,"url":"https://api.github.com/repos/abak-press/slaver","forks_url":"https://api.github.com/repos/abak-press/slaver/forks","keys_url":"https://api.github.com/repos/abak-press/slaver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abak-press/slaver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abak-press/slaver/teams","hooks_url":"https://api.github.com/repos/abak-press/slaver/hooks","issue_events_url":"https://api.github.com/repos/abak-press/slaver/issues/events{/number}","events_url":"https://api.github.com/repos/abak-press/slaver/events","assignees_url":"https://api.github.com/repos/abak-press/slaver/assignees{/user}","branches_url":"https://api.github.com/repos/abak-press/slaver/branches{/branch}","tags_url":"https://api.github.com/repos/abak-press/slaver/tags","blobs_url":"https://api.github.com/repos/abak-press/slaver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abak-press/slaver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abak-press/slaver/git/refs{/sha}","trees_url":"https://api.github.com/repos/abak-press/slaver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abak-press/slaver/statuses/{sha}","languages_url":"https://api.github.com/repos/abak-press/slaver/languages","stargazers_url":"https://api.github.com/repos/abak-press/slaver/stargazers","contributors_url":"https://api.github.com/repos/abak-press/slaver/contributors","subscribers_url":"https://api.github.com/repos/abak-press/slaver/subscribers","subscription_url":"https://api.github.com/repos/abak-press/slaver/subscription","commits_url":"https://api.github.com/repos/abak-press/slaver/commits{/sha}","git_commits_url":"https://api.github.com/repos/abak-press/slaver/git/commits{/sha}","comments_url":"https://api.github.com/repos/abak-press/slaver/comments{/number}","issue_comment_url":"https://api.github.com/repos/abak-press/slaver/issues/comments{/number}","contents_url":"https://api.github.com/repos/abak-press/slaver/contents/{+path}","compare_url":"https://api.github.com/repos/abak-press/slaver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abak-press/slaver/merges","archive_url":"https://api.github.com/repos/abak-press/slaver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abak-press/slaver/downloads","issues_url":"https://api.github.com/repos/abak-press/slaver/issues{/number}","pulls_url":"https://api.github.com/repos/abak-press/slaver/pulls{/number}","milestones_url":"https://api.github.com/repos/abak-press/slaver/milestones{/number}","notifications_url":"https://api.github.com/repos/abak-press/slaver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abak-press/slaver/labels{/name}","releases_url":"https://api.github.com/repos/abak-press/slaver/releases{/id}","created_at":"2015-10-19T11:22:53Z","updated_at":"2015-10-22T07:28:49Z","pushed_at":"2015-10-22T11:34:56Z","git_url":"git://github.com/abak-press/slaver.git","ssh_url":"git@github.com:abak-press/slaver.git","clone_url":"https://github.com/abak-press/slaver.git","svn_url":"https://github.com/abak-press/slaver","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abak-press/slaver/pulls/2"},"html":{"href":"https://github.com/abak-press/slaver/pull/2"},"issue":{"href":"https://api.github.com/repos/abak-press/slaver/issues/2"},"comments":{"href":"https://api.github.com/repos/abak-press/slaver/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/abak-press/slaver/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/abak-press/slaver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abak-press/slaver/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/abak-press/slaver/statuses/6b1b2c68336a3f06ccac8f5975c6ece076574581"}}}}