{"action":"created","comment":{"url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/comments/64704813","id":64704813,"diff_hunk":"@@ -0,0 +1,25 @@\n+class UserPolicy < ApplicationPolicy\n+  def index?\n+    user.has_role? :admin\n+  end\n+\n+  def create?\n+    user.has_role? :admin\n+  end\n+\n+  def new?\n+    create?\n+  end\n+\n+  def update?\n+    user.has_role? :admin\n+  end\n+\n+  def edit?\n+    update?\n+  end\n+\n+\tdef destroy?\n+    user.has_role? :admin\n+  end","path":"app/policies/user_policy.rb","position":24,"original_position":24,"commit_id":"b2f903dd388b1e10e8fdf7c17e41ef71b530e102","original_commit_id":"b2f903dd388b1e10e8fdf7c17e41ef71b530e102","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"`end` at 24, 2 is not aligned with `def` at 22, 1.","created_at":"2016-05-26T08:00:01Z","updated_at":"2016-05-26T08:00:01Z","html_url":"https://github.com/Osshrp/flashcardsHD/pull/3#discussion_r64704813","pull_request_url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/comments/64704813"},"html":{"href":"https://github.com/Osshrp/flashcardsHD/pull/3#discussion_r64704813"},"pull_request":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3","id":71508094,"html_url":"https://github.com/Osshrp/flashcardsHD/pull/3","diff_url":"https://github.com/Osshrp/flashcardsHD/pull/3.diff","patch_url":"https://github.com/Osshrp/flashcardsHD/pull/3.patch","issue_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/3","number":3,"state":"open","locked":false,"title":"Third task","user":{"login":"Osshrp","id":13249465,"avatar_url":"https://avatars.githubusercontent.com/u/13249465?v=3","gravatar_id":"","url":"https://api.github.com/users/Osshrp","html_url":"https://github.com/Osshrp","followers_url":"https://api.github.com/users/Osshrp/followers","following_url":"https://api.github.com/users/Osshrp/following{/other_user}","gists_url":"https://api.github.com/users/Osshrp/gists{/gist_id}","starred_url":"https://api.github.com/users/Osshrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osshrp/subscriptions","organizations_url":"https://api.github.com/users/Osshrp/orgs","repos_url":"https://api.github.com/users/Osshrp/repos","events_url":"https://api.github.com/users/Osshrp/events{/privacy}","received_events_url":"https://api.github.com/users/Osshrp/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-26T06:51:41Z","updated_at":"2016-05-26T08:00:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ec70acb773ee9a70edb7c6902b567b56a7f78f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/3/comments","statuses_url":"https://api.github.com/repos/Osshrp/flashcardsHD/statuses/b2f903dd388b1e10e8fdf7c17e41ef71b530e102","head":{"label":"Osshrp:third-task","ref":"third-task","sha":"b2f903dd388b1e10e8fdf7c17e41ef71b530e102","user":{"login":"Osshrp","id":13249465,"avatar_url":"https://avatars.githubusercontent.com/u/13249465?v=3","gravatar_id":"","url":"https://api.github.com/users/Osshrp","html_url":"https://github.com/Osshrp","followers_url":"https://api.github.com/users/Osshrp/followers","following_url":"https://api.github.com/users/Osshrp/following{/other_user}","gists_url":"https://api.github.com/users/Osshrp/gists{/gist_id}","starred_url":"https://api.github.com/users/Osshrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osshrp/subscriptions","organizations_url":"https://api.github.com/users/Osshrp/orgs","repos_url":"https://api.github.com/users/Osshrp/repos","events_url":"https://api.github.com/users/Osshrp/events{/privacy}","received_events_url":"https://api.github.com/users/Osshrp/received_events","type":"User","site_admin":false},"repo":{"id":58805754,"name":"flashcardsHD","full_name":"Osshrp/flashcardsHD","owner":{"login":"Osshrp","id":13249465,"avatar_url":"https://avatars.githubusercontent.com/u/13249465?v=3","gravatar_id":"","url":"https://api.github.com/users/Osshrp","html_url":"https://github.com/Osshrp","followers_url":"https://api.github.com/users/Osshrp/followers","following_url":"https://api.github.com/users/Osshrp/following{/other_user}","gists_url":"https://api.github.com/users/Osshrp/gists{/gist_id}","starred_url":"https://api.github.com/users/Osshrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osshrp/subscriptions","organizations_url":"https://api.github.com/users/Osshrp/orgs","repos_url":"https://api.github.com/users/Osshrp/repos","events_url":"https://api.github.com/users/Osshrp/events{/privacy}","received_events_url":"https://api.github.com/users/Osshrp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Osshrp/flashcardsHD","description":"","fork":false,"url":"https://api.github.com/repos/Osshrp/flashcardsHD","forks_url":"https://api.github.com/repos/Osshrp/flashcardsHD/forks","keys_url":"https://api.github.com/repos/Osshrp/flashcardsHD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osshrp/flashcardsHD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osshrp/flashcardsHD/teams","hooks_url":"https://api.github.com/repos/Osshrp/flashcardsHD/hooks","issue_events_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/events{/number}","events_url":"https://api.github.com/repos/Osshrp/flashcardsHD/events","assignees_url":"https://api.github.com/repos/Osshrp/flashcardsHD/assignees{/user}","branches_url":"https://api.github.com/repos/Osshrp/flashcardsHD/branches{/branch}","tags_url":"https://api.github.com/repos/Osshrp/flashcardsHD/tags","blobs_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osshrp/flashcardsHD/statuses/{sha}","languages_url":"https://api.github.com/repos/Osshrp/flashcardsHD/languages","stargazers_url":"https://api.github.com/repos/Osshrp/flashcardsHD/stargazers","contributors_url":"https://api.github.com/repos/Osshrp/flashcardsHD/contributors","subscribers_url":"https://api.github.com/repos/Osshrp/flashcardsHD/subscribers","subscription_url":"https://api.github.com/repos/Osshrp/flashcardsHD/subscription","commits_url":"https://api.github.com/repos/Osshrp/flashcardsHD/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osshrp/flashcardsHD/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osshrp/flashcardsHD/contents/{+path}","compare_url":"https://api.github.com/repos/Osshrp/flashcardsHD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osshrp/flashcardsHD/merges","archive_url":"https://api.github.com/repos/Osshrp/flashcardsHD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osshrp/flashcardsHD/downloads","issues_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues{/number}","pulls_url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls{/number}","milestones_url":"https://api.github.com/repos/Osshrp/flashcardsHD/milestones{/number}","notifications_url":"https://api.github.com/repos/Osshrp/flashcardsHD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osshrp/flashcardsHD/labels{/name}","releases_url":"https://api.github.com/repos/Osshrp/flashcardsHD/releases{/id}","deployments_url":"https://api.github.com/repos/Osshrp/flashcardsHD/deployments","created_at":"2016-05-14T12:03:26Z","updated_at":"2016-05-14T12:07:26Z","pushed_at":"2016-05-26T07:59:54Z","git_url":"git://github.com/Osshrp/flashcardsHD.git","ssh_url":"git@github.com:Osshrp/flashcardsHD.git","clone_url":"https://github.com/Osshrp/flashcardsHD.git","svn_url":"https://github.com/Osshrp/flashcardsHD","homepage":null,"size":155,"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":"Osshrp:master","ref":"master","sha":"4cac8579546671573b4093d1e4435463f58857dc","user":{"login":"Osshrp","id":13249465,"avatar_url":"https://avatars.githubusercontent.com/u/13249465?v=3","gravatar_id":"","url":"https://api.github.com/users/Osshrp","html_url":"https://github.com/Osshrp","followers_url":"https://api.github.com/users/Osshrp/followers","following_url":"https://api.github.com/users/Osshrp/following{/other_user}","gists_url":"https://api.github.com/users/Osshrp/gists{/gist_id}","starred_url":"https://api.github.com/users/Osshrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osshrp/subscriptions","organizations_url":"https://api.github.com/users/Osshrp/orgs","repos_url":"https://api.github.com/users/Osshrp/repos","events_url":"https://api.github.com/users/Osshrp/events{/privacy}","received_events_url":"https://api.github.com/users/Osshrp/received_events","type":"User","site_admin":false},"repo":{"id":58805754,"name":"flashcardsHD","full_name":"Osshrp/flashcardsHD","owner":{"login":"Osshrp","id":13249465,"avatar_url":"https://avatars.githubusercontent.com/u/13249465?v=3","gravatar_id":"","url":"https://api.github.com/users/Osshrp","html_url":"https://github.com/Osshrp","followers_url":"https://api.github.com/users/Osshrp/followers","following_url":"https://api.github.com/users/Osshrp/following{/other_user}","gists_url":"https://api.github.com/users/Osshrp/gists{/gist_id}","starred_url":"https://api.github.com/users/Osshrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osshrp/subscriptions","organizations_url":"https://api.github.com/users/Osshrp/orgs","repos_url":"https://api.github.com/users/Osshrp/repos","events_url":"https://api.github.com/users/Osshrp/events{/privacy}","received_events_url":"https://api.github.com/users/Osshrp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Osshrp/flashcardsHD","description":"","fork":false,"url":"https://api.github.com/repos/Osshrp/flashcardsHD","forks_url":"https://api.github.com/repos/Osshrp/flashcardsHD/forks","keys_url":"https://api.github.com/repos/Osshrp/flashcardsHD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osshrp/flashcardsHD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osshrp/flashcardsHD/teams","hooks_url":"https://api.github.com/repos/Osshrp/flashcardsHD/hooks","issue_events_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/events{/number}","events_url":"https://api.github.com/repos/Osshrp/flashcardsHD/events","assignees_url":"https://api.github.com/repos/Osshrp/flashcardsHD/assignees{/user}","branches_url":"https://api.github.com/repos/Osshrp/flashcardsHD/branches{/branch}","tags_url":"https://api.github.com/repos/Osshrp/flashcardsHD/tags","blobs_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osshrp/flashcardsHD/statuses/{sha}","languages_url":"https://api.github.com/repos/Osshrp/flashcardsHD/languages","stargazers_url":"https://api.github.com/repos/Osshrp/flashcardsHD/stargazers","contributors_url":"https://api.github.com/repos/Osshrp/flashcardsHD/contributors","subscribers_url":"https://api.github.com/repos/Osshrp/flashcardsHD/subscribers","subscription_url":"https://api.github.com/repos/Osshrp/flashcardsHD/subscription","commits_url":"https://api.github.com/repos/Osshrp/flashcardsHD/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osshrp/flashcardsHD/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osshrp/flashcardsHD/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osshrp/flashcardsHD/contents/{+path}","compare_url":"https://api.github.com/repos/Osshrp/flashcardsHD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osshrp/flashcardsHD/merges","archive_url":"https://api.github.com/repos/Osshrp/flashcardsHD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osshrp/flashcardsHD/downloads","issues_url":"https://api.github.com/repos/Osshrp/flashcardsHD/issues{/number}","pulls_url":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls{/number}","milestones_url":"https://api.github.com/repos/Osshrp/flashcardsHD/milestones{/number}","notifications_url":"https://api.github.com/repos/Osshrp/flashcardsHD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osshrp/flashcardsHD/labels{/name}","releases_url":"https://api.github.com/repos/Osshrp/flashcardsHD/releases{/id}","deployments_url":"https://api.github.com/repos/Osshrp/flashcardsHD/deployments","created_at":"2016-05-14T12:03:26Z","updated_at":"2016-05-14T12:07:26Z","pushed_at":"2016-05-26T07:59:54Z","git_url":"git://github.com/Osshrp/flashcardsHD.git","ssh_url":"git@github.com:Osshrp/flashcardsHD.git","clone_url":"https://github.com/Osshrp/flashcardsHD.git","svn_url":"https://github.com/Osshrp/flashcardsHD","homepage":null,"size":155,"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/Osshrp/flashcardsHD/pulls/3"},"html":{"href":"https://github.com/Osshrp/flashcardsHD/pull/3"},"issue":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/3"},"comments":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Osshrp/flashcardsHD/statuses/b2f903dd388b1e10e8fdf7c17e41ef71b530e102"}}}}
{"actor":{"display_login":"houndci-bot"}}