{"action":"created","comment":{"url":"https://api.github.com/repos/andela-toduah/apibucket/pulls/comments/49071385","id":49071385,"diff_hunk":"@@ -56,21 +53,21 @@ def display_all(bucketlists)\n           end\n         end\n \n-        def authorize_action(action)\n-          authorize! action, @bucketlist\n+        def cancan_authorize","path":"app/controllers/api/v1/bucketlists_controller.rb","position":71,"original_position":71,"commit_id":"2f04238e3d0d72cc8a15a5ea17330c415c18fb54","original_commit_id":"2f04238e3d0d72cc8a15a5ea17330c415c18fb54","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","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":"Inconsistent indentation detected.","created_at":"2016-01-07T13:18:13Z","updated_at":"2016-01-07T13:18:13Z","html_url":"https://github.com/andela-toduah/apibucket/pull/28#discussion_r49071385","pull_request_url":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/andela-toduah/apibucket/pulls/comments/49071385"},"html":{"href":"https://github.com/andela-toduah/apibucket/pull/28#discussion_r49071385"},"pull_request":{"href":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28","id":55336614,"html_url":"https://github.com/andela-toduah/apibucket/pull/28","diff_url":"https://github.com/andela-toduah/apibucket/pull/28.diff","patch_url":"https://github.com/andela-toduah/apibucket/pull/28.patch","issue_url":"https://api.github.com/repos/andela-toduah/apibucket/issues/28","number":28,"state":"open","locked":false,"title":"Cleaned up code, and refactored some methods","user":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-07T13:18:08Z","updated_at":"2016-01-07T13:18:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93ac68b9b268d0147e00b077ba9784fc315f1070","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28/commits","review_comments_url":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28/comments","review_comment_url":"https://api.github.com/repos/andela-toduah/apibucket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-toduah/apibucket/issues/28/comments","statuses_url":"https://api.github.com/repos/andela-toduah/apibucket/statuses/2f04238e3d0d72cc8a15a5ea17330c415c18fb54","head":{"label":"andela-toduah:ch-clean-up-code","ref":"ch-clean-up-code","sha":"2f04238e3d0d72cc8a15a5ea17330c415c18fb54","user":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"repo":{"id":48051370,"name":"apibucket","full_name":"andela-toduah/apibucket","owner":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-toduah/apibucket","description":"API endpoint for Bucketlists.","fork":false,"url":"https://api.github.com/repos/andela-toduah/apibucket","forks_url":"https://api.github.com/repos/andela-toduah/apibucket/forks","keys_url":"https://api.github.com/repos/andela-toduah/apibucket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-toduah/apibucket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-toduah/apibucket/teams","hooks_url":"https://api.github.com/repos/andela-toduah/apibucket/hooks","issue_events_url":"https://api.github.com/repos/andela-toduah/apibucket/issues/events{/number}","events_url":"https://api.github.com/repos/andela-toduah/apibucket/events","assignees_url":"https://api.github.com/repos/andela-toduah/apibucket/assignees{/user}","branches_url":"https://api.github.com/repos/andela-toduah/apibucket/branches{/branch}","tags_url":"https://api.github.com/repos/andela-toduah/apibucket/tags","blobs_url":"https://api.github.com/repos/andela-toduah/apibucket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-toduah/apibucket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-toduah/apibucket/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-toduah/apibucket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-toduah/apibucket/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-toduah/apibucket/languages","stargazers_url":"https://api.github.com/repos/andela-toduah/apibucket/stargazers","contributors_url":"https://api.github.com/repos/andela-toduah/apibucket/contributors","subscribers_url":"https://api.github.com/repos/andela-toduah/apibucket/subscribers","subscription_url":"https://api.github.com/repos/andela-toduah/apibucket/subscription","commits_url":"https://api.github.com/repos/andela-toduah/apibucket/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-toduah/apibucket/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-toduah/apibucket/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-toduah/apibucket/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-toduah/apibucket/contents/{+path}","compare_url":"https://api.github.com/repos/andela-toduah/apibucket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-toduah/apibucket/merges","archive_url":"https://api.github.com/repos/andela-toduah/apibucket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-toduah/apibucket/downloads","issues_url":"https://api.github.com/repos/andela-toduah/apibucket/issues{/number}","pulls_url":"https://api.github.com/repos/andela-toduah/apibucket/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-toduah/apibucket/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-toduah/apibucket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-toduah/apibucket/labels{/name}","releases_url":"https://api.github.com/repos/andela-toduah/apibucket/releases{/id}","created_at":"2015-12-15T15:25:23Z","updated_at":"2015-12-15T15:34:07Z","pushed_at":"2016-01-07T13:18:08Z","git_url":"git://github.com/andela-toduah/apibucket.git","ssh_url":"git@github.com:andela-toduah/apibucket.git","clone_url":"https://github.com/andela-toduah/apibucket.git","svn_url":"https://github.com/andela-toduah/apibucket","homepage":null,"size":69,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andela-toduah:master","ref":"master","sha":"2c7265cb7f8d6df087b0eb58173fe1022c62324f","user":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"repo":{"id":48051370,"name":"apibucket","full_name":"andela-toduah/apibucket","owner":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-toduah/apibucket","description":"API endpoint for Bucketlists.","fork":false,"url":"https://api.github.com/repos/andela-toduah/apibucket","forks_url":"https://api.github.com/repos/andela-toduah/apibucket/forks","keys_url":"https://api.github.com/repos/andela-toduah/apibucket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-toduah/apibucket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-toduah/apibucket/teams","hooks_url":"https://api.github.com/repos/andela-toduah/apibucket/hooks","issue_events_url":"https://api.github.com/repos/andela-toduah/apibucket/issues/events{/number}","events_url":"https://api.github.com/repos/andela-toduah/apibucket/events","assignees_url":"https://api.github.com/repos/andela-toduah/apibucket/assignees{/user}","branches_url":"https://api.github.com/repos/andela-toduah/apibucket/branches{/branch}","tags_url":"https://api.github.com/repos/andela-toduah/apibucket/tags","blobs_url":"https://api.github.com/repos/andela-toduah/apibucket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-toduah/apibucket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-toduah/apibucket/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-toduah/apibucket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-toduah/apibucket/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-toduah/apibucket/languages","stargazers_url":"https://api.github.com/repos/andela-toduah/apibucket/stargazers","contributors_url":"https://api.github.com/repos/andela-toduah/apibucket/contributors","subscribers_url":"https://api.github.com/repos/andela-toduah/apibucket/subscribers","subscription_url":"https://api.github.com/repos/andela-toduah/apibucket/subscription","commits_url":"https://api.github.com/repos/andela-toduah/apibucket/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-toduah/apibucket/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-toduah/apibucket/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-toduah/apibucket/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-toduah/apibucket/contents/{+path}","compare_url":"https://api.github.com/repos/andela-toduah/apibucket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-toduah/apibucket/merges","archive_url":"https://api.github.com/repos/andela-toduah/apibucket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-toduah/apibucket/downloads","issues_url":"https://api.github.com/repos/andela-toduah/apibucket/issues{/number}","pulls_url":"https://api.github.com/repos/andela-toduah/apibucket/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-toduah/apibucket/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-toduah/apibucket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-toduah/apibucket/labels{/name}","releases_url":"https://api.github.com/repos/andela-toduah/apibucket/releases{/id}","created_at":"2015-12-15T15:25:23Z","updated_at":"2015-12-15T15:34:07Z","pushed_at":"2016-01-07T13:18:08Z","git_url":"git://github.com/andela-toduah/apibucket.git","ssh_url":"git@github.com:andela-toduah/apibucket.git","clone_url":"https://github.com/andela-toduah/apibucket.git","svn_url":"https://github.com/andela-toduah/apibucket","homepage":null,"size":69,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28"},"html":{"href":"https://github.com/andela-toduah/apibucket/pull/28"},"issue":{"href":"https://api.github.com/repos/andela-toduah/apibucket/issues/28"},"comments":{"href":"https://api.github.com/repos/andela-toduah/apibucket/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-toduah/apibucket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-toduah/apibucket/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/andela-toduah/apibucket/statuses/2f04238e3d0d72cc8a15a5ea17330c415c18fb54"}}}}