{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/20","id":67525281,"html_url":"https://github.com/johnplayer1982/sample_project/pull/20","diff_url":"https://github.com/johnplayer1982/sample_project/pull/20.diff","patch_url":"https://github.com/johnplayer1982/sample_project/pull/20.patch","issue_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues/20","number":20,"state":"closed","locked":false,"title":"Cancan Authorization","user":{"login":"johnplayer1982","id":13165846,"avatar_url":"https://avatars.githubusercontent.com/u/13165846?v=3","gravatar_id":"","url":"https://api.github.com/users/johnplayer1982","html_url":"https://github.com/johnplayer1982","followers_url":"https://api.github.com/users/johnplayer1982/followers","following_url":"https://api.github.com/users/johnplayer1982/following{/other_user}","gists_url":"https://api.github.com/users/johnplayer1982/gists{/gist_id}","starred_url":"https://api.github.com/users/johnplayer1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnplayer1982/subscriptions","organizations_url":"https://api.github.com/users/johnplayer1982/orgs","repos_url":"https://api.github.com/users/johnplayer1982/repos","events_url":"https://api.github.com/users/johnplayer1982/events{/privacy}","received_events_url":"https://api.github.com/users/johnplayer1982/received_events","type":"User","site_admin":false},"body":"## Adding user authorization\r\n\r\nA visitor can:\r\n\r\n- View profiles\r\n- View collections\r\n- View items\r\n\r\nA logged in user can:\r\n\r\n- Only edit their own profile, collections or items\r\n- Cannot view admin pages\r\n\r\nAn Admin can:\r\n\r\n- Do anything!","created_at":"2016-04-22T15:00:06Z","updated_at":"2016-04-22T15:00:23Z","closed_at":"2016-04-22T15:00:23Z","merged_at":"2016-04-22T15:00:23Z","merge_commit_sha":"14fbba45b84dd0ccb00f4ce4ef96edf84ed28497","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/20/commits","review_comments_url":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/20/comments","review_comment_url":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues/20/comments","statuses_url":"https://api.github.com/repos/johnplayer1982/sample_project/statuses/a193e70972312de0afd0808673faff0004f93753","head":{"label":"johnplayer1982:more-auth-cancan","ref":"more-auth-cancan","sha":"a193e70972312de0afd0808673faff0004f93753","user":{"login":"johnplayer1982","id":13165846,"avatar_url":"https://avatars.githubusercontent.com/u/13165846?v=3","gravatar_id":"","url":"https://api.github.com/users/johnplayer1982","html_url":"https://github.com/johnplayer1982","followers_url":"https://api.github.com/users/johnplayer1982/followers","following_url":"https://api.github.com/users/johnplayer1982/following{/other_user}","gists_url":"https://api.github.com/users/johnplayer1982/gists{/gist_id}","starred_url":"https://api.github.com/users/johnplayer1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnplayer1982/subscriptions","organizations_url":"https://api.github.com/users/johnplayer1982/orgs","repos_url":"https://api.github.com/users/johnplayer1982/repos","events_url":"https://api.github.com/users/johnplayer1982/events{/privacy}","received_events_url":"https://api.github.com/users/johnplayer1982/received_events","type":"User","site_admin":false},"repo":{"id":55773615,"name":"sample_project","full_name":"johnplayer1982/sample_project","owner":{"login":"johnplayer1982","id":13165846,"avatar_url":"https://avatars.githubusercontent.com/u/13165846?v=3","gravatar_id":"","url":"https://api.github.com/users/johnplayer1982","html_url":"https://github.com/johnplayer1982","followers_url":"https://api.github.com/users/johnplayer1982/followers","following_url":"https://api.github.com/users/johnplayer1982/following{/other_user}","gists_url":"https://api.github.com/users/johnplayer1982/gists{/gist_id}","starred_url":"https://api.github.com/users/johnplayer1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnplayer1982/subscriptions","organizations_url":"https://api.github.com/users/johnplayer1982/orgs","repos_url":"https://api.github.com/users/johnplayer1982/repos","events_url":"https://api.github.com/users/johnplayer1982/events{/privacy}","received_events_url":"https://api.github.com/users/johnplayer1982/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnplayer1982/sample_project","description":"","fork":false,"url":"https://api.github.com/repos/johnplayer1982/sample_project","forks_url":"https://api.github.com/repos/johnplayer1982/sample_project/forks","keys_url":"https://api.github.com/repos/johnplayer1982/sample_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnplayer1982/sample_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnplayer1982/sample_project/teams","hooks_url":"https://api.github.com/repos/johnplayer1982/sample_project/hooks","issue_events_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues/events{/number}","events_url":"https://api.github.com/repos/johnplayer1982/sample_project/events","assignees_url":"https://api.github.com/repos/johnplayer1982/sample_project/assignees{/user}","branches_url":"https://api.github.com/repos/johnplayer1982/sample_project/branches{/branch}","tags_url":"https://api.github.com/repos/johnplayer1982/sample_project/tags","blobs_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnplayer1982/sample_project/statuses/{sha}","languages_url":"https://api.github.com/repos/johnplayer1982/sample_project/languages","stargazers_url":"https://api.github.com/repos/johnplayer1982/sample_project/stargazers","contributors_url":"https://api.github.com/repos/johnplayer1982/sample_project/contributors","subscribers_url":"https://api.github.com/repos/johnplayer1982/sample_project/subscribers","subscription_url":"https://api.github.com/repos/johnplayer1982/sample_project/subscription","commits_url":"https://api.github.com/repos/johnplayer1982/sample_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnplayer1982/sample_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnplayer1982/sample_project/contents/{+path}","compare_url":"https://api.github.com/repos/johnplayer1982/sample_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnplayer1982/sample_project/merges","archive_url":"https://api.github.com/repos/johnplayer1982/sample_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnplayer1982/sample_project/downloads","issues_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues{/number}","pulls_url":"https://api.github.com/repos/johnplayer1982/sample_project/pulls{/number}","milestones_url":"https://api.github.com/repos/johnplayer1982/sample_project/milestones{/number}","notifications_url":"https://api.github.com/repos/johnplayer1982/sample_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnplayer1982/sample_project/labels{/name}","releases_url":"https://api.github.com/repos/johnplayer1982/sample_project/releases{/id}","deployments_url":"https://api.github.com/repos/johnplayer1982/sample_project/deployments","created_at":"2016-04-08T11:20:25Z","updated_at":"2016-04-08T11:23:18Z","pushed_at":"2016-04-22T15:00:23Z","git_url":"git://github.com/johnplayer1982/sample_project.git","ssh_url":"git@github.com:johnplayer1982/sample_project.git","clone_url":"https://github.com/johnplayer1982/sample_project.git","svn_url":"https://github.com/johnplayer1982/sample_project","homepage":null,"size":6634,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"johnplayer1982:master","ref":"master","sha":"e620d99bc60e8b382ff45992ae6fdc3975934b90","user":{"login":"johnplayer1982","id":13165846,"avatar_url":"https://avatars.githubusercontent.com/u/13165846?v=3","gravatar_id":"","url":"https://api.github.com/users/johnplayer1982","html_url":"https://github.com/johnplayer1982","followers_url":"https://api.github.com/users/johnplayer1982/followers","following_url":"https://api.github.com/users/johnplayer1982/following{/other_user}","gists_url":"https://api.github.com/users/johnplayer1982/gists{/gist_id}","starred_url":"https://api.github.com/users/johnplayer1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnplayer1982/subscriptions","organizations_url":"https://api.github.com/users/johnplayer1982/orgs","repos_url":"https://api.github.com/users/johnplayer1982/repos","events_url":"https://api.github.com/users/johnplayer1982/events{/privacy}","received_events_url":"https://api.github.com/users/johnplayer1982/received_events","type":"User","site_admin":false},"repo":{"id":55773615,"name":"sample_project","full_name":"johnplayer1982/sample_project","owner":{"login":"johnplayer1982","id":13165846,"avatar_url":"https://avatars.githubusercontent.com/u/13165846?v=3","gravatar_id":"","url":"https://api.github.com/users/johnplayer1982","html_url":"https://github.com/johnplayer1982","followers_url":"https://api.github.com/users/johnplayer1982/followers","following_url":"https://api.github.com/users/johnplayer1982/following{/other_user}","gists_url":"https://api.github.com/users/johnplayer1982/gists{/gist_id}","starred_url":"https://api.github.com/users/johnplayer1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnplayer1982/subscriptions","organizations_url":"https://api.github.com/users/johnplayer1982/orgs","repos_url":"https://api.github.com/users/johnplayer1982/repos","events_url":"https://api.github.com/users/johnplayer1982/events{/privacy}","received_events_url":"https://api.github.com/users/johnplayer1982/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnplayer1982/sample_project","description":"","fork":false,"url":"https://api.github.com/repos/johnplayer1982/sample_project","forks_url":"https://api.github.com/repos/johnplayer1982/sample_project/forks","keys_url":"https://api.github.com/repos/johnplayer1982/sample_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnplayer1982/sample_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnplayer1982/sample_project/teams","hooks_url":"https://api.github.com/repos/johnplayer1982/sample_project/hooks","issue_events_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues/events{/number}","events_url":"https://api.github.com/repos/johnplayer1982/sample_project/events","assignees_url":"https://api.github.com/repos/johnplayer1982/sample_project/assignees{/user}","branches_url":"https://api.github.com/repos/johnplayer1982/sample_project/branches{/branch}","tags_url":"https://api.github.com/repos/johnplayer1982/sample_project/tags","blobs_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnplayer1982/sample_project/statuses/{sha}","languages_url":"https://api.github.com/repos/johnplayer1982/sample_project/languages","stargazers_url":"https://api.github.com/repos/johnplayer1982/sample_project/stargazers","contributors_url":"https://api.github.com/repos/johnplayer1982/sample_project/contributors","subscribers_url":"https://api.github.com/repos/johnplayer1982/sample_project/subscribers","subscription_url":"https://api.github.com/repos/johnplayer1982/sample_project/subscription","commits_url":"https://api.github.com/repos/johnplayer1982/sample_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnplayer1982/sample_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnplayer1982/sample_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnplayer1982/sample_project/contents/{+path}","compare_url":"https://api.github.com/repos/johnplayer1982/sample_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnplayer1982/sample_project/merges","archive_url":"https://api.github.com/repos/johnplayer1982/sample_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnplayer1982/sample_project/downloads","issues_url":"https://api.github.com/repos/johnplayer1982/sample_project/issues{/number}","pulls_url":"https://api.github.com/repos/johnplayer1982/sample_project/pulls{/number}","milestones_url":"https://api.github.com/repos/johnplayer1982/sample_project/milestones{/number}","notifications_url":"https://api.github.com/repos/johnplayer1982/sample_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnplayer1982/sample_project/labels{/name}","releases_url":"https://api.github.com/repos/johnplayer1982/sample_project/releases{/id}","deployments_url":"https://api.github.com/repos/johnplayer1982/sample_project/deployments","created_at":"2016-04-08T11:20:25Z","updated_at":"2016-04-08T11:23:18Z","pushed_at":"2016-04-22T15:00:23Z","git_url":"git://github.com/johnplayer1982/sample_project.git","ssh_url":"git@github.com:johnplayer1982/sample_project.git","clone_url":"https://github.com/johnplayer1982/sample_project.git","svn_url":"https://github.com/johnplayer1982/sample_project","homepage":null,"size":6634,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/20"},"html":{"href":"https://github.com/johnplayer1982/sample_project/pull/20"},"issue":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/issues/20"},"comments":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/johnplayer1982/sample_project/statuses/a193e70972312de0afd0808673faff0004f93753"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"johnplayer1982","id":13165846,"avatar_url":"https://avatars.githubusercontent.com/u/13165846?v=3","gravatar_id":"","url":"https://api.github.com/users/johnplayer1982","html_url":"https://github.com/johnplayer1982","followers_url":"https://api.github.com/users/johnplayer1982/followers","following_url":"https://api.github.com/users/johnplayer1982/following{/other_user}","gists_url":"https://api.github.com/users/johnplayer1982/gists{/gist_id}","starred_url":"https://api.github.com/users/johnplayer1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnplayer1982/subscriptions","organizations_url":"https://api.github.com/users/johnplayer1982/orgs","repos_url":"https://api.github.com/users/johnplayer1982/repos","events_url":"https://api.github.com/users/johnplayer1982/events{/privacy}","received_events_url":"https://api.github.com/users/johnplayer1982/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":5,"additions":127,"deletions":46,"changed_files":24}}