GitHub PullRequestReviewCommentEvent at 2014-06-26 15:29:29
Repository: Annotation-Studio
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/comments/14247299","id":14247299,"diff_hunk":"@@ -0,0 +1,46 @@\n+# Require whichever elevator you're using below here...\n+#\n+# require 'apartment/elevators/generic'\n+# require 'apartment/elevators/domain'\n+require 'apartment/elevators/subdomain'\n+\n+#\n+# Apartment Configuration\n+#\n+Apartment.configure do |config|\n+\n+  # These models will not be multi-tenanted,\n+  # but remain in the global (public) namespace\n+  #\n+  # An example might be a Customer or Tenant model that stores each tenant information\n+  # ex:\n+  #\n+  # config.excluded_models = %w{Tenant}\n+  #\n+  config.excluded_models = %w{Tenant AdminUser Delayed::Backend::ActiveRecord::Job}\n+\n+  # use postgres schemas?\n+  config.use_schemas = true\n+\n+  # configure persistent schemas (E.g. hstore )\n+  # config.persistent_schemas = %w{ hstore }\n+\n+  # add the Rails environment to database names?\n+  # config.prepend_environment = true\n+  # config.append_environment = true\n+\n+  # supply list of database names for migrations to run on\n+  config.tenant_names = lambda{ Tenant.pluck :database_name }\n+end\n+\n+##\n+# Elevator Configuration\n+\n+# Rails.application.config.middleware.use 'Apartment::Elevators::Generic', lambda { |request|","path":"config/initializers/apartment.rb","position":39,"original_position":39,"commit_id":"3238ced52ed1ed331d723e5a30deabc144643253","original_commit_id":"3238ced52ed1ed331d723e5a30deabc144643253","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [93/80]","created_at":"2014-06-26T15:29:29Z","updated_at":"2014-06-26T15:29:29Z","html_url":"https://github.com/hyperstudio/Annotation-Studio/pull/90#discussion_r14247299","pull_request_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/comments/14247299"},"html":{"href":"https://github.com/hyperstudio/Annotation-Studio/pull/90#discussion_r14247299"},"pull_request":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90","id":17654908,"html_url":"https://github.com/hyperstudio/Annotation-Studio/pull/90","diff_url":"https://github.com/hyperstudio/Annotation-Studio/pull/90.diff","patch_url":"https://github.com/hyperstudio/Annotation-Studio/pull/90.patch","issue_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/90","number":90,"state":"open","title":"Multitenancy via the Apartment gem","user":{"login":"djcp","id":3966,"avatar_url":"https://avatars.githubusercontent.com/u/3966?","gravatar_id":"a0609ca336dd8ebba1da3256e9532d7c","url":"https://api.github.com/users/djcp","html_url":"https://github.com/djcp","followers_url":"https://api.github.com/users/djcp/followers","following_url":"https://api.github.com/users/djcp/following{/other_user}","gists_url":"https://api.github.com/users/djcp/gists{/gist_id}","starred_url":"https://api.github.com/users/djcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djcp/subscriptions","organizations_url":"https://api.github.com/users/djcp/orgs","repos_url":"https://api.github.com/users/djcp/repos","events_url":"https://api.github.com/users/djcp/events{/privacy}","received_events_url":"https://api.github.com/users/djcp/received_events","type":"User","site_admin":false},"body":"Includes:\n\n* URL multitenancy via paperlclip interpolations\n* Introduces the Tenant model to allow for subdomain-based multitenancy\n* AdminUser, Tenant, and DelayedJob fixes","created_at":"2014-06-26T15:29:19Z","updated_at":"2014-06-26T15:29:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"747abb7a694d139a507a62654907e0745868a7dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90/commits","review_comments_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90/comments","review_comment_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/90/comments","statuses_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/statuses/3238ced52ed1ed331d723e5a30deabc144643253","head":{"label":"hyperstudio:djcp-multitenancy","ref":"djcp-multitenancy","sha":"3238ced52ed1ed331d723e5a30deabc144643253","user":{"login":"hyperstudio","id":1633344,"avatar_url":"https://avatars.githubusercontent.com/u/1633344?","gravatar_id":"1d1fd428fdd61d0a566c9e9af2e3c70b","url":"https://api.github.com/users/hyperstudio","html_url":"https://github.com/hyperstudio","followers_url":"https://api.github.com/users/hyperstudio/followers","following_url":"https://api.github.com/users/hyperstudio/following{/other_user}","gists_url":"https://api.github.com/users/hyperstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperstudio/subscriptions","organizations_url":"https://api.github.com/users/hyperstudio/orgs","repos_url":"https://api.github.com/users/hyperstudio/repos","events_url":"https://api.github.com/users/hyperstudio/events{/privacy}","received_events_url":"https://api.github.com/users/hyperstudio/received_events","type":"Organization","site_admin":false},"repo":{"id":3844617,"name":"Annotation-Studio","full_name":"hyperstudio/Annotation-Studio","owner":{"login":"hyperstudio","id":1633344,"avatar_url":"https://avatars.githubusercontent.com/u/1633344?","gravatar_id":"1d1fd428fdd61d0a566c9e9af2e3c70b","url":"https://api.github.com/users/hyperstudio","html_url":"https://github.com/hyperstudio","followers_url":"https://api.github.com/users/hyperstudio/followers","following_url":"https://api.github.com/users/hyperstudio/following{/other_user}","gists_url":"https://api.github.com/users/hyperstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperstudio/subscriptions","organizations_url":"https://api.github.com/users/hyperstudio/orgs","repos_url":"https://api.github.com/users/hyperstudio/repos","events_url":"https://api.github.com/users/hyperstudio/events{/privacy}","received_events_url":"https://api.github.com/users/hyperstudio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperstudio/Annotation-Studio","description":"An online annotation platform for teaching and learning in the humanities.","fork":false,"url":"https://api.github.com/repos/hyperstudio/Annotation-Studio","forks_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/forks","keys_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/teams","hooks_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/hooks","issue_events_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/events{/number}","events_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/events","assignees_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/assignees{/user}","branches_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/branches{/branch}","tags_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/tags","blobs_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/languages","stargazers_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/stargazers","contributors_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/contributors","subscribers_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/subscribers","subscription_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/subscription","commits_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/comments/{number}","contents_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/contents/{+path}","compare_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/merges","archive_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/downloads","issues_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues{/number}","pulls_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/labels{/name}","releases_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/releases{/id}","created_at":"2012-03-27T14:34:52Z","updated_at":"2014-06-25T18:22:53Z","pushed_at":"2014-06-26T15:16:59Z","git_url":"git://github.com/hyperstudio/Annotation-Studio.git","ssh_url":"git@github.com:hyperstudio/Annotation-Studio.git","clone_url":"https://github.com/hyperstudio/Annotation-Studio.git","svn_url":"https://github.com/hyperstudio/Annotation-Studio","homepage":"http://www.annotationstudio.org","size":24553,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":14,"mirror_url":null,"open_issues_count":25,"forks":14,"open_issues":25,"watchers":22,"default_branch":"master"}},"base":{"label":"hyperstudio:master","ref":"master","sha":"81808b66b008060a2e73263a34208dfbd0c41ec6","user":{"login":"hyperstudio","id":1633344,"avatar_url":"https://avatars.githubusercontent.com/u/1633344?","gravatar_id":"1d1fd428fdd61d0a566c9e9af2e3c70b","url":"https://api.github.com/users/hyperstudio","html_url":"https://github.com/hyperstudio","followers_url":"https://api.github.com/users/hyperstudio/followers","following_url":"https://api.github.com/users/hyperstudio/following{/other_user}","gists_url":"https://api.github.com/users/hyperstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperstudio/subscriptions","organizations_url":"https://api.github.com/users/hyperstudio/orgs","repos_url":"https://api.github.com/users/hyperstudio/repos","events_url":"https://api.github.com/users/hyperstudio/events{/privacy}","received_events_url":"https://api.github.com/users/hyperstudio/received_events","type":"Organization","site_admin":false},"repo":{"id":3844617,"name":"Annotation-Studio","full_name":"hyperstudio/Annotation-Studio","owner":{"login":"hyperstudio","id":1633344,"avatar_url":"https://avatars.githubusercontent.com/u/1633344?","gravatar_id":"1d1fd428fdd61d0a566c9e9af2e3c70b","url":"https://api.github.com/users/hyperstudio","html_url":"https://github.com/hyperstudio","followers_url":"https://api.github.com/users/hyperstudio/followers","following_url":"https://api.github.com/users/hyperstudio/following{/other_user}","gists_url":"https://api.github.com/users/hyperstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperstudio/subscriptions","organizations_url":"https://api.github.com/users/hyperstudio/orgs","repos_url":"https://api.github.com/users/hyperstudio/repos","events_url":"https://api.github.com/users/hyperstudio/events{/privacy}","received_events_url":"https://api.github.com/users/hyperstudio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperstudio/Annotation-Studio","description":"An online annotation platform for teaching and learning in the humanities.","fork":false,"url":"https://api.github.com/repos/hyperstudio/Annotation-Studio","forks_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/forks","keys_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/teams","hooks_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/hooks","issue_events_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/events{/number}","events_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/events","assignees_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/assignees{/user}","branches_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/branches{/branch}","tags_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/tags","blobs_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/languages","stargazers_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/stargazers","contributors_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/contributors","subscribers_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/subscribers","subscription_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/subscription","commits_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/comments/{number}","contents_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/contents/{+path}","compare_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/merges","archive_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/downloads","issues_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues{/number}","pulls_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/labels{/name}","releases_url":"https://api.github.com/repos/hyperstudio/Annotation-Studio/releases{/id}","created_at":"2012-03-27T14:34:52Z","updated_at":"2014-06-25T18:22:53Z","pushed_at":"2014-06-26T15:16:59Z","git_url":"git://github.com/hyperstudio/Annotation-Studio.git","ssh_url":"git@github.com:hyperstudio/Annotation-Studio.git","clone_url":"https://github.com/hyperstudio/Annotation-Studio.git","svn_url":"https://github.com/hyperstudio/Annotation-Studio","homepage":"http://www.annotationstudio.org","size":24553,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":14,"mirror_url":null,"open_issues_count":25,"forks":14,"open_issues":25,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90"},"html":{"href":"https://github.com/hyperstudio/Annotation-Studio/pull/90"},"issue":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/90"},"comments":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/hyperstudio/Annotation-Studio/statuses/3238ced52ed1ed331d723e5a30deabc144643253"}}}}