{"action":"created","comment":{"url":"https://api.github.com/repos/thorncp/ReviewSite/pulls/comments/22543685","id":22543685,"diff_hunk":"@@ -11,90 +11,82 @@ def initialize(user)\n       # baseline\n       can :manage, SelfAssessment do | self_assessment |\n         self_assessment.review.upcoming? &&\n-          own_review?(self_assessment.review, user)\n+        own_review?(self_assessment.review, user)\n       end\n \n       can :manage, Invitation do | invitation |\n         invitation.review.upcoming? &&\n-          (own_review?(invitation.review, user) ||\n-          coachee_review?(invitation.review, user))\n+        (own_review?(invitation.review, user) ||\n+        coachee_review?(invitation.review, user))\n       end\n+\n       can [:read, :destroy],\n-          Invitation,\n-          email: user.email\n+      Invitation,\n+      email: user.email\n \n       can [:read, :update, :destroy],\n-          Feedback,\n-          submitted: false, user_id: user.id\n+      Feedback,","path":"app/models/ability.rb","position":25,"original_position":25,"commit_id":"a1589bb7c3377fbcca26ec48704f270f8ac24e65","original_commit_id":"a1589bb7c3377fbcca26ec48704f270f8ac24e65","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":"Align the parameters of a method call if they span more than one line.","created_at":"2015-01-06T19:11:12Z","updated_at":"2015-01-06T19:11:12Z","html_url":"https://github.com/thorncp/ReviewSite/pull/20#discussion_r22543685","pull_request_url":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/thorncp/ReviewSite/pulls/comments/22543685"},"html":{"href":"https://github.com/thorncp/ReviewSite/pull/20#discussion_r22543685"},"pull_request":{"href":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20","id":26910249,"html_url":"https://github.com/thorncp/ReviewSite/pull/20","diff_url":"https://github.com/thorncp/ReviewSite/pull/20.diff","patch_url":"https://github.com/thorncp/ReviewSite/pull/20.patch","issue_url":"https://api.github.com/repos/thorncp/ReviewSite/issues/20","number":20,"state":"open","locked":false,"title":"Another branch","user":{"login":"thorncp","id":72176,"avatar_url":"https://avatars.githubusercontent.com/u/72176?v=3","gravatar_id":"","url":"https://api.github.com/users/thorncp","html_url":"https://github.com/thorncp","followers_url":"https://api.github.com/users/thorncp/followers","following_url":"https://api.github.com/users/thorncp/following{/other_user}","gists_url":"https://api.github.com/users/thorncp/gists{/gist_id}","starred_url":"https://api.github.com/users/thorncp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorncp/subscriptions","organizations_url":"https://api.github.com/users/thorncp/orgs","repos_url":"https://api.github.com/users/thorncp/repos","events_url":"https://api.github.com/users/thorncp/events{/privacy}","received_events_url":"https://api.github.com/users/thorncp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-06T19:10:24Z","updated_at":"2015-01-06T19:11:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9262f3dd575fe2f0a585376a74f3146639347ce2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20/commits","review_comments_url":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20/comments","review_comment_url":"https://api.github.com/repos/thorncp/ReviewSite/pulls/comments/{number}","comments_url":"https://api.github.com/repos/thorncp/ReviewSite/issues/20/comments","statuses_url":"https://api.github.com/repos/thorncp/ReviewSite/statuses/a1589bb7c3377fbcca26ec48704f270f8ac24e65","head":{"label":"thorncp:another-branch","ref":"another-branch","sha":"a1589bb7c3377fbcca26ec48704f270f8ac24e65","user":{"login":"thorncp","id":72176,"avatar_url":"https://avatars.githubusercontent.com/u/72176?v=3","gravatar_id":"","url":"https://api.github.com/users/thorncp","html_url":"https://github.com/thorncp","followers_url":"https://api.github.com/users/thorncp/followers","following_url":"https://api.github.com/users/thorncp/following{/other_user}","gists_url":"https://api.github.com/users/thorncp/gists{/gist_id}","starred_url":"https://api.github.com/users/thorncp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorncp/subscriptions","organizations_url":"https://api.github.com/users/thorncp/orgs","repos_url":"https://api.github.com/users/thorncp/repos","events_url":"https://api.github.com/users/thorncp/events{/privacy}","received_events_url":"https://api.github.com/users/thorncp/received_events","type":"User","site_admin":false},"repo":{"id":28833458,"name":"ReviewSite","full_name":"thorncp/ReviewSite","owner":{"login":"thorncp","id":72176,"avatar_url":"https://avatars.githubusercontent.com/u/72176?v=3","gravatar_id":"","url":"https://api.github.com/users/thorncp","html_url":"https://github.com/thorncp","followers_url":"https://api.github.com/users/thorncp/followers","following_url":"https://api.github.com/users/thorncp/following{/other_user}","gists_url":"https://api.github.com/users/thorncp/gists{/gist_id}","starred_url":"https://api.github.com/users/thorncp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorncp/subscriptions","organizations_url":"https://api.github.com/users/thorncp/orgs","repos_url":"https://api.github.com/users/thorncp/repos","events_url":"https://api.github.com/users/thorncp/events{/privacy}","received_events_url":"https://api.github.com/users/thorncp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thorncp/ReviewSite","description":"","fork":false,"url":"https://api.github.com/repos/thorncp/ReviewSite","forks_url":"https://api.github.com/repos/thorncp/ReviewSite/forks","keys_url":"https://api.github.com/repos/thorncp/ReviewSite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thorncp/ReviewSite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thorncp/ReviewSite/teams","hooks_url":"https://api.github.com/repos/thorncp/ReviewSite/hooks","issue_events_url":"https://api.github.com/repos/thorncp/ReviewSite/issues/events{/number}","events_url":"https://api.github.com/repos/thorncp/ReviewSite/events","assignees_url":"https://api.github.com/repos/thorncp/ReviewSite/assignees{/user}","branches_url":"https://api.github.com/repos/thorncp/ReviewSite/branches{/branch}","tags_url":"https://api.github.com/repos/thorncp/ReviewSite/tags","blobs_url":"https://api.github.com/repos/thorncp/ReviewSite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thorncp/ReviewSite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thorncp/ReviewSite/git/refs{/sha}","trees_url":"https://api.github.com/repos/thorncp/ReviewSite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thorncp/ReviewSite/statuses/{sha}","languages_url":"https://api.github.com/repos/thorncp/ReviewSite/languages","stargazers_url":"https://api.github.com/repos/thorncp/ReviewSite/stargazers","contributors_url":"https://api.github.com/repos/thorncp/ReviewSite/contributors","subscribers_url":"https://api.github.com/repos/thorncp/ReviewSite/subscribers","subscription_url":"https://api.github.com/repos/thorncp/ReviewSite/subscription","commits_url":"https://api.github.com/repos/thorncp/ReviewSite/commits{/sha}","git_commits_url":"https://api.github.com/repos/thorncp/ReviewSite/git/commits{/sha}","comments_url":"https://api.github.com/repos/thorncp/ReviewSite/comments{/number}","issue_comment_url":"https://api.github.com/repos/thorncp/ReviewSite/issues/comments/{number}","contents_url":"https://api.github.com/repos/thorncp/ReviewSite/contents/{+path}","compare_url":"https://api.github.com/repos/thorncp/ReviewSite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thorncp/ReviewSite/merges","archive_url":"https://api.github.com/repos/thorncp/ReviewSite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thorncp/ReviewSite/downloads","issues_url":"https://api.github.com/repos/thorncp/ReviewSite/issues{/number}","pulls_url":"https://api.github.com/repos/thorncp/ReviewSite/pulls{/number}","milestones_url":"https://api.github.com/repos/thorncp/ReviewSite/milestones{/number}","notifications_url":"https://api.github.com/repos/thorncp/ReviewSite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thorncp/ReviewSite/labels{/name}","releases_url":"https://api.github.com/repos/thorncp/ReviewSite/releases{/id}","created_at":"2015-01-05T21:49:16Z","updated_at":"2015-01-05T21:49:26Z","pushed_at":"2015-01-06T19:05:45Z","git_url":"git://github.com/thorncp/ReviewSite.git","ssh_url":"git@github.com:thorncp/ReviewSite.git","clone_url":"https://github.com/thorncp/ReviewSite.git","svn_url":"https://github.com/thorncp/ReviewSite","homepage":null,"size":0,"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":"thorncp:master","ref":"master","sha":"ef64c6a86e31a676b14dbeae89d101074307898d","user":{"login":"thorncp","id":72176,"avatar_url":"https://avatars.githubusercontent.com/u/72176?v=3","gravatar_id":"","url":"https://api.github.com/users/thorncp","html_url":"https://github.com/thorncp","followers_url":"https://api.github.com/users/thorncp/followers","following_url":"https://api.github.com/users/thorncp/following{/other_user}","gists_url":"https://api.github.com/users/thorncp/gists{/gist_id}","starred_url":"https://api.github.com/users/thorncp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorncp/subscriptions","organizations_url":"https://api.github.com/users/thorncp/orgs","repos_url":"https://api.github.com/users/thorncp/repos","events_url":"https://api.github.com/users/thorncp/events{/privacy}","received_events_url":"https://api.github.com/users/thorncp/received_events","type":"User","site_admin":false},"repo":{"id":28833458,"name":"ReviewSite","full_name":"thorncp/ReviewSite","owner":{"login":"thorncp","id":72176,"avatar_url":"https://avatars.githubusercontent.com/u/72176?v=3","gravatar_id":"","url":"https://api.github.com/users/thorncp","html_url":"https://github.com/thorncp","followers_url":"https://api.github.com/users/thorncp/followers","following_url":"https://api.github.com/users/thorncp/following{/other_user}","gists_url":"https://api.github.com/users/thorncp/gists{/gist_id}","starred_url":"https://api.github.com/users/thorncp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorncp/subscriptions","organizations_url":"https://api.github.com/users/thorncp/orgs","repos_url":"https://api.github.com/users/thorncp/repos","events_url":"https://api.github.com/users/thorncp/events{/privacy}","received_events_url":"https://api.github.com/users/thorncp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thorncp/ReviewSite","description":"","fork":false,"url":"https://api.github.com/repos/thorncp/ReviewSite","forks_url":"https://api.github.com/repos/thorncp/ReviewSite/forks","keys_url":"https://api.github.com/repos/thorncp/ReviewSite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thorncp/ReviewSite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thorncp/ReviewSite/teams","hooks_url":"https://api.github.com/repos/thorncp/ReviewSite/hooks","issue_events_url":"https://api.github.com/repos/thorncp/ReviewSite/issues/events{/number}","events_url":"https://api.github.com/repos/thorncp/ReviewSite/events","assignees_url":"https://api.github.com/repos/thorncp/ReviewSite/assignees{/user}","branches_url":"https://api.github.com/repos/thorncp/ReviewSite/branches{/branch}","tags_url":"https://api.github.com/repos/thorncp/ReviewSite/tags","blobs_url":"https://api.github.com/repos/thorncp/ReviewSite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thorncp/ReviewSite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thorncp/ReviewSite/git/refs{/sha}","trees_url":"https://api.github.com/repos/thorncp/ReviewSite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thorncp/ReviewSite/statuses/{sha}","languages_url":"https://api.github.com/repos/thorncp/ReviewSite/languages","stargazers_url":"https://api.github.com/repos/thorncp/ReviewSite/stargazers","contributors_url":"https://api.github.com/repos/thorncp/ReviewSite/contributors","subscribers_url":"https://api.github.com/repos/thorncp/ReviewSite/subscribers","subscription_url":"https://api.github.com/repos/thorncp/ReviewSite/subscription","commits_url":"https://api.github.com/repos/thorncp/ReviewSite/commits{/sha}","git_commits_url":"https://api.github.com/repos/thorncp/ReviewSite/git/commits{/sha}","comments_url":"https://api.github.com/repos/thorncp/ReviewSite/comments{/number}","issue_comment_url":"https://api.github.com/repos/thorncp/ReviewSite/issues/comments/{number}","contents_url":"https://api.github.com/repos/thorncp/ReviewSite/contents/{+path}","compare_url":"https://api.github.com/repos/thorncp/ReviewSite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thorncp/ReviewSite/merges","archive_url":"https://api.github.com/repos/thorncp/ReviewSite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thorncp/ReviewSite/downloads","issues_url":"https://api.github.com/repos/thorncp/ReviewSite/issues{/number}","pulls_url":"https://api.github.com/repos/thorncp/ReviewSite/pulls{/number}","milestones_url":"https://api.github.com/repos/thorncp/ReviewSite/milestones{/number}","notifications_url":"https://api.github.com/repos/thorncp/ReviewSite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thorncp/ReviewSite/labels{/name}","releases_url":"https://api.github.com/repos/thorncp/ReviewSite/releases{/id}","created_at":"2015-01-05T21:49:16Z","updated_at":"2015-01-05T21:49:26Z","pushed_at":"2015-01-06T19:05:45Z","git_url":"git://github.com/thorncp/ReviewSite.git","ssh_url":"git@github.com:thorncp/ReviewSite.git","clone_url":"https://github.com/thorncp/ReviewSite.git","svn_url":"https://github.com/thorncp/ReviewSite","homepage":null,"size":0,"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/thorncp/ReviewSite/pulls/20"},"html":{"href":"https://github.com/thorncp/ReviewSite/pull/20"},"issue":{"href":"https://api.github.com/repos/thorncp/ReviewSite/issues/20"},"comments":{"href":"https://api.github.com/repos/thorncp/ReviewSite/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/thorncp/ReviewSite/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/thorncp/ReviewSite/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/thorncp/ReviewSite/statuses/a1589bb7c3377fbcca26ec48704f270f8ac24e65"}}}}