{"action":"closed","number":431,"pull_request":{"url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/431","id":53265023,"html_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/431","diff_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/431.diff","patch_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/431.patch","issue_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues/431","number":431,"state":"closed","locked":false,"title":"Use proper module for the sqlserver_connection method consistent with…","user":{"login":"jippeholwerda","id":117410,"avatar_url":"https://avatars.githubusercontent.com/u/117410?v=3","gravatar_id":"","url":"https://api.github.com/users/jippeholwerda","html_url":"https://github.com/jippeholwerda","followers_url":"https://api.github.com/users/jippeholwerda/followers","following_url":"https://api.github.com/users/jippeholwerda/following{/other_user}","gists_url":"https://api.github.com/users/jippeholwerda/gists{/gist_id}","starred_url":"https://api.github.com/users/jippeholwerda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jippeholwerda/subscriptions","organizations_url":"https://api.github.com/users/jippeholwerda/orgs","repos_url":"https://api.github.com/users/jippeholwerda/repos","events_url":"https://api.github.com/users/jippeholwerda/events{/privacy}","received_events_url":"https://api.github.com/users/jippeholwerda/received_events","type":"User","site_admin":false},"body":"… how other adapters work.\r\n\r\nThis also allows you to execute stored procedures from a class without having to inherit from `ActiveRecord::Base` (for instance, because there is no table to map to):\r\n\r\n```\r\nclass NoTableModel\r\n  extend ActiveRecord::ConnectionHandling\r\n  include ActiveRecord::Core\r\n\r\n  self.configurations = Rails.configuration.database_configuration\r\n  self.establish_connection(\"#{Rails.env}_some_database\".to_sym)\r\n\r\n  def self.execute_procedure(*args)\r\n    self.connection_pool.with_connection { |conn| conn.execute_procedure(*args) }\r\n  end\r\nend\r\n```","created_at":"2015-12-10T14:29:44Z","updated_at":"2015-12-23T15:06:11Z","closed_at":"2015-12-23T15:06:11Z","merged_at":"2015-12-23T15:06:11Z","merge_commit_sha":"5426f2f2934847364faf3c77115cb97365310d3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/431/commits","review_comments_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/431/comments","review_comment_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues/431/comments","statuses_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/statuses/d94599b7f14a11a3ee12f599c2699976c3bcae83","head":{"label":"jippeholwerda:connection_handling_module","ref":"connection_handling_module","sha":"d94599b7f14a11a3ee12f599c2699976c3bcae83","user":{"login":"jippeholwerda","id":117410,"avatar_url":"https://avatars.githubusercontent.com/u/117410?v=3","gravatar_id":"","url":"https://api.github.com/users/jippeholwerda","html_url":"https://github.com/jippeholwerda","followers_url":"https://api.github.com/users/jippeholwerda/followers","following_url":"https://api.github.com/users/jippeholwerda/following{/other_user}","gists_url":"https://api.github.com/users/jippeholwerda/gists{/gist_id}","starred_url":"https://api.github.com/users/jippeholwerda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jippeholwerda/subscriptions","organizations_url":"https://api.github.com/users/jippeholwerda/orgs","repos_url":"https://api.github.com/users/jippeholwerda/repos","events_url":"https://api.github.com/users/jippeholwerda/events{/privacy}","received_events_url":"https://api.github.com/users/jippeholwerda/received_events","type":"User","site_admin":false},"repo":{"id":46726942,"name":"activerecord-sqlserver-adapter","full_name":"jippeholwerda/activerecord-sqlserver-adapter","owner":{"login":"jippeholwerda","id":117410,"avatar_url":"https://avatars.githubusercontent.com/u/117410?v=3","gravatar_id":"","url":"https://api.github.com/users/jippeholwerda","html_url":"https://github.com/jippeholwerda","followers_url":"https://api.github.com/users/jippeholwerda/followers","following_url":"https://api.github.com/users/jippeholwerda/following{/other_user}","gists_url":"https://api.github.com/users/jippeholwerda/gists{/gist_id}","starred_url":"https://api.github.com/users/jippeholwerda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jippeholwerda/subscriptions","organizations_url":"https://api.github.com/users/jippeholwerda/orgs","repos_url":"https://api.github.com/users/jippeholwerda/repos","events_url":"https://api.github.com/users/jippeholwerda/events{/privacy}","received_events_url":"https://api.github.com/users/jippeholwerda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jippeholwerda/activerecord-sqlserver-adapter","description":"SQL Server Adapter For Rails","fork":true,"url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter","forks_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/forks","keys_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/teams","hooks_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/hooks","issue_events_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/events","assignees_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/tags","blobs_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/languages","stargazers_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/stargazers","contributors_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/contributors","subscribers_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/subscribers","subscription_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/subscription","commits_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/merges","archive_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/downloads","issues_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/labels{/name}","releases_url":"https://api.github.com/repos/jippeholwerda/activerecord-sqlserver-adapter/releases{/id}","created_at":"2015-11-23T14:50:05Z","updated_at":"2015-11-23T14:50:07Z","pushed_at":"2015-12-22T09:26:13Z","git_url":"git://github.com/jippeholwerda/activerecord-sqlserver-adapter.git","ssh_url":"git@github.com:jippeholwerda/activerecord-sqlserver-adapter.git","clone_url":"https://github.com/jippeholwerda/activerecord-sqlserver-adapter.git","svn_url":"https://github.com/jippeholwerda/activerecord-sqlserver-adapter","homepage":"","size":2593,"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":"rails-sqlserver:master","ref":"master","sha":"dca09a0e6debeb75c9d99f99099851000baea667","user":{"login":"rails-sqlserver","id":34626,"avatar_url":"https://avatars.githubusercontent.com/u/34626?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-sqlserver","html_url":"https://github.com/rails-sqlserver","followers_url":"https://api.github.com/users/rails-sqlserver/followers","following_url":"https://api.github.com/users/rails-sqlserver/following{/other_user}","gists_url":"https://api.github.com/users/rails-sqlserver/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-sqlserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-sqlserver/subscriptions","organizations_url":"https://api.github.com/users/rails-sqlserver/orgs","repos_url":"https://api.github.com/users/rails-sqlserver/repos","events_url":"https://api.github.com/users/rails-sqlserver/events{/privacy}","received_events_url":"https://api.github.com/users/rails-sqlserver/received_events","type":"User","site_admin":false},"repo":{"id":76404,"name":"activerecord-sqlserver-adapter","full_name":"rails-sqlserver/activerecord-sqlserver-adapter","owner":{"login":"rails-sqlserver","id":34626,"avatar_url":"https://avatars.githubusercontent.com/u/34626?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-sqlserver","html_url":"https://github.com/rails-sqlserver","followers_url":"https://api.github.com/users/rails-sqlserver/followers","following_url":"https://api.github.com/users/rails-sqlserver/following{/other_user}","gists_url":"https://api.github.com/users/rails-sqlserver/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-sqlserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-sqlserver/subscriptions","organizations_url":"https://api.github.com/users/rails-sqlserver/orgs","repos_url":"https://api.github.com/users/rails-sqlserver/repos","events_url":"https://api.github.com/users/rails-sqlserver/events{/privacy}","received_events_url":"https://api.github.com/users/rails-sqlserver/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter","description":"SQL Server Adapter For Rails","fork":false,"url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter","forks_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/forks","keys_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/teams","hooks_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/hooks","issue_events_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/events","assignees_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/tags","blobs_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/languages","stargazers_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/stargazers","contributors_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/contributors","subscribers_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/subscribers","subscription_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/subscription","commits_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/merges","archive_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/downloads","issues_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/labels{/name}","releases_url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/releases{/id}","created_at":"2008-11-15T14:53:54Z","updated_at":"2015-12-22T17:03:33Z","pushed_at":"2015-12-23T15:06:11Z","git_url":"git://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git","ssh_url":"git@github.com:rails-sqlserver/activerecord-sqlserver-adapter.git","clone_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git","svn_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter","homepage":"","size":2860,"stargazers_count":672,"watchers_count":672,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":347,"mirror_url":null,"open_issues_count":12,"forks":347,"open_issues":12,"watchers":672,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/431"},"html":{"href":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/431"},"issue":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues/431"},"comments":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/issues/431/comments"},"review_comments":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/431/comments"},"review_comment":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/431/commits"},"statuses":{"href":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/statuses/d94599b7f14a11a3ee12f599c2699976c3bcae83"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"metaskills","id":2381,"avatar_url":"https://avatars.githubusercontent.com/u/2381?v=3","gravatar_id":"","url":"https://api.github.com/users/metaskills","html_url":"https://github.com/metaskills","followers_url":"https://api.github.com/users/metaskills/followers","following_url":"https://api.github.com/users/metaskills/following{/other_user}","gists_url":"https://api.github.com/users/metaskills/gists{/gist_id}","starred_url":"https://api.github.com/users/metaskills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaskills/subscriptions","organizations_url":"https://api.github.com/users/metaskills/orgs","repos_url":"https://api.github.com/users/metaskills/repos","events_url":"https://api.github.com/users/metaskills/events{/privacy}","received_events_url":"https://api.github.com/users/metaskills/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":4,"changed_files":1}}