{"action":"created","comment":{"url":"https://api.github.com/repos/rails/globalid/pulls/comments/25441599","id":25441599,"diff_hunk":"@@ -10,12 +10,11 @@ class << self\n     attr_reader :app\n \n     def create(model, options = {})","path":"lib/global_id/global_id.rb","position":3,"original_position":3,"commit_id":"4f165ff4b89b1a6796ddf0a3e007283fbd768903","original_commit_id":"4f165ff4b89b1a6796ddf0a3e007283fbd768903","user":{"login":"kaspth","id":350807,"avatar_url":"https://avatars.githubusercontent.com/u/350807?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false},"body":"Let's implement this in terms of `create_from`.","created_at":"2015-02-26T16:37:37Z","updated_at":"2015-02-26T16:37:37Z","html_url":"https://github.com/rails/globalid/pull/61#discussion_r25441599","pull_request_url":"https://api.github.com/repos/rails/globalid/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/rails/globalid/pulls/comments/25441599"},"html":{"href":"https://github.com/rails/globalid/pull/61#discussion_r25441599"},"pull_request":{"href":"https://api.github.com/repos/rails/globalid/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/rails/globalid/pulls/61","id":29761646,"html_url":"https://github.com/rails/globalid/pull/61","diff_url":"https://github.com/rails/globalid/pull/61.diff","patch_url":"https://github.com/rails/globalid/pull/61.patch","issue_url":"https://api.github.com/repos/rails/globalid/issues/61","number":61,"state":"open","locked":false,"title":"create_from class method added into the GlobalId class","user":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"body":"create_from class method added into the GlobalId class for creating global id with model name and id capability\r\nsee the discussion on issue #59 ","created_at":"2015-02-21T22:46:21Z","updated_at":"2015-02-26T16:37:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b216094182f88701c3e9713dfdca98c1b8e78d68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/globalid/pulls/61/commits","review_comments_url":"https://api.github.com/repos/rails/globalid/pulls/61/comments","review_comment_url":"https://api.github.com/repos/rails/globalid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/globalid/issues/61/comments","statuses_url":"https://api.github.com/repos/rails/globalid/statuses/4f165ff4b89b1a6796ddf0a3e007283fbd768903","head":{"label":"meinac:create_with_model_name_and_id","ref":"create_with_model_name_and_id","sha":"4f165ff4b89b1a6796ddf0a3e007283fbd768903","user":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"repo":{"id":31141731,"name":"globalid","full_name":"meinac/globalid","owner":{"login":"meinac","id":1840945,"avatar_url":"https://avatars.githubusercontent.com/u/1840945?v=3","gravatar_id":"","url":"https://api.github.com/users/meinac","html_url":"https://github.com/meinac","followers_url":"https://api.github.com/users/meinac/followers","following_url":"https://api.github.com/users/meinac/following{/other_user}","gists_url":"https://api.github.com/users/meinac/gists{/gist_id}","starred_url":"https://api.github.com/users/meinac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meinac/subscriptions","organizations_url":"https://api.github.com/users/meinac/orgs","repos_url":"https://api.github.com/users/meinac/repos","events_url":"https://api.github.com/users/meinac/events{/privacy}","received_events_url":"https://api.github.com/users/meinac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meinac/globalid","description":"Identify app models with a URI","fork":true,"url":"https://api.github.com/repos/meinac/globalid","forks_url":"https://api.github.com/repos/meinac/globalid/forks","keys_url":"https://api.github.com/repos/meinac/globalid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meinac/globalid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meinac/globalid/teams","hooks_url":"https://api.github.com/repos/meinac/globalid/hooks","issue_events_url":"https://api.github.com/repos/meinac/globalid/issues/events{/number}","events_url":"https://api.github.com/repos/meinac/globalid/events","assignees_url":"https://api.github.com/repos/meinac/globalid/assignees{/user}","branches_url":"https://api.github.com/repos/meinac/globalid/branches{/branch}","tags_url":"https://api.github.com/repos/meinac/globalid/tags","blobs_url":"https://api.github.com/repos/meinac/globalid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meinac/globalid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meinac/globalid/git/refs{/sha}","trees_url":"https://api.github.com/repos/meinac/globalid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meinac/globalid/statuses/{sha}","languages_url":"https://api.github.com/repos/meinac/globalid/languages","stargazers_url":"https://api.github.com/repos/meinac/globalid/stargazers","contributors_url":"https://api.github.com/repos/meinac/globalid/contributors","subscribers_url":"https://api.github.com/repos/meinac/globalid/subscribers","subscription_url":"https://api.github.com/repos/meinac/globalid/subscription","commits_url":"https://api.github.com/repos/meinac/globalid/commits{/sha}","git_commits_url":"https://api.github.com/repos/meinac/globalid/git/commits{/sha}","comments_url":"https://api.github.com/repos/meinac/globalid/comments{/number}","issue_comment_url":"https://api.github.com/repos/meinac/globalid/issues/comments{/number}","contents_url":"https://api.github.com/repos/meinac/globalid/contents/{+path}","compare_url":"https://api.github.com/repos/meinac/globalid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meinac/globalid/merges","archive_url":"https://api.github.com/repos/meinac/globalid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meinac/globalid/downloads","issues_url":"https://api.github.com/repos/meinac/globalid/issues{/number}","pulls_url":"https://api.github.com/repos/meinac/globalid/pulls{/number}","milestones_url":"https://api.github.com/repos/meinac/globalid/milestones{/number}","notifications_url":"https://api.github.com/repos/meinac/globalid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meinac/globalid/labels{/name}","releases_url":"https://api.github.com/repos/meinac/globalid/releases{/id}","created_at":"2015-02-21T21:28:29Z","updated_at":"2015-02-21T21:28:30Z","pushed_at":"2015-02-25T13:59:32Z","git_url":"git://github.com/meinac/globalid.git","ssh_url":"git@github.com:meinac/globalid.git","clone_url":"https://github.com/meinac/globalid.git","svn_url":"https://github.com/meinac/globalid","homepage":null,"size":206,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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:master","ref":"master","sha":"62e3bb33cfc87a6f2073b6754d724d049fda3cd8","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":22991474,"name":"globalid","full_name":"rails/globalid","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/globalid","description":"Identify app models with a URI","fork":false,"url":"https://api.github.com/repos/rails/globalid","forks_url":"https://api.github.com/repos/rails/globalid/forks","keys_url":"https://api.github.com/repos/rails/globalid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/globalid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/globalid/teams","hooks_url":"https://api.github.com/repos/rails/globalid/hooks","issue_events_url":"https://api.github.com/repos/rails/globalid/issues/events{/number}","events_url":"https://api.github.com/repos/rails/globalid/events","assignees_url":"https://api.github.com/repos/rails/globalid/assignees{/user}","branches_url":"https://api.github.com/repos/rails/globalid/branches{/branch}","tags_url":"https://api.github.com/repos/rails/globalid/tags","blobs_url":"https://api.github.com/repos/rails/globalid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/globalid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/globalid/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/globalid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/globalid/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/globalid/languages","stargazers_url":"https://api.github.com/repos/rails/globalid/stargazers","contributors_url":"https://api.github.com/repos/rails/globalid/contributors","subscribers_url":"https://api.github.com/repos/rails/globalid/subscribers","subscription_url":"https://api.github.com/repos/rails/globalid/subscription","commits_url":"https://api.github.com/repos/rails/globalid/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/globalid/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/globalid/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/globalid/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/globalid/contents/{+path}","compare_url":"https://api.github.com/repos/rails/globalid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/globalid/merges","archive_url":"https://api.github.com/repos/rails/globalid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/globalid/downloads","issues_url":"https://api.github.com/repos/rails/globalid/issues{/number}","pulls_url":"https://api.github.com/repos/rails/globalid/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/globalid/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/globalid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/globalid/labels{/name}","releases_url":"https://api.github.com/repos/rails/globalid/releases{/id}","created_at":"2014-08-15T14:05:35Z","updated_at":"2015-02-26T01:54:54Z","pushed_at":"2015-02-12T17:59:35Z","git_url":"git://github.com/rails/globalid.git","ssh_url":"git@github.com:rails/globalid.git","clone_url":"https://github.com/rails/globalid.git","svn_url":"https://github.com/rails/globalid","homepage":null,"size":806,"stargazers_count":352,"watchers_count":352,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":2,"forks":39,"open_issues":2,"watchers":352,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/globalid/pulls/61"},"html":{"href":"https://github.com/rails/globalid/pull/61"},"issue":{"href":"https://api.github.com/repos/rails/globalid/issues/61"},"comments":{"href":"https://api.github.com/repos/rails/globalid/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/globalid/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/globalid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/globalid/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/rails/globalid/statuses/4f165ff4b89b1a6796ddf0a3e007283fbd768903"}}}}