{"action":"created","comment":{"url":"https://api.github.com/repos/behica/blocipedia/pulls/comments/116633863","pull_request_review_id":38269590,"id":116633863,"diff_hunk":"@@ -0,0 +1,53 @@\n+class ApplicationPolicy\n+  attr_reader :user, :record\n+\n+  def initialize(user, record)\n+    @user = user\n+    @record = record\n+  end\n+\n+  def index?\n+    false\n+  end\n+\n+  def show?\n+    scope.where(:id => record.id).exists?\n+  end\n+\n+  def create?\n+    false\n+  end\n+\n+  def new?\n+    create?","path":"app/policies/application_policy.rb","position":22,"original_position":22,"commit_id":"4e781987fc30d71fe81390409ec864ce82048780","original_commit_id":"4e781987fc30d71fe81390409ec864ce82048780","user":{"login":"bobbilee19","id":2551955,"avatar_url":"https://avatars0.githubusercontent.com/u/2551955?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbilee19","html_url":"https://github.com/bobbilee19","followers_url":"https://api.github.com/users/bobbilee19/followers","following_url":"https://api.github.com/users/bobbilee19/following{/other_user}","gists_url":"https://api.github.com/users/bobbilee19/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbilee19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbilee19/subscriptions","organizations_url":"https://api.github.com/users/bobbilee19/orgs","repos_url":"https://api.github.com/users/bobbilee19/repos","events_url":"https://api.github.com/users/bobbilee19/events{/privacy}","received_events_url":"https://api.github.com/users/bobbilee19/received_events","type":"User","site_admin":false},"body":"yep see just like this is what I was talking about!","created_at":"2017-05-16T00:55:11Z","updated_at":"2017-05-16T00:55:11Z","html_url":"https://github.com/behica/blocipedia/pull/3#discussion_r116633863","pull_request_url":"https://api.github.com/repos/behica/blocipedia/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/behica/blocipedia/pulls/comments/116633863"},"html":{"href":"https://github.com/behica/blocipedia/pull/3#discussion_r116633863"},"pull_request":{"href":"https://api.github.com/repos/behica/blocipedia/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/behica/blocipedia/pulls/3","id":120679647,"html_url":"https://github.com/behica/blocipedia/pull/3","diff_url":"https://github.com/behica/blocipedia/pull/3.diff","patch_url":"https://github.com/behica/blocipedia/pull/3.patch","issue_url":"https://api.github.com/repos/behica/blocipedia/issues/3","number":3,"state":"open","locked":false,"title":"User roles added","user":{"login":"behica","id":22877400,"avatar_url":"https://avatars2.githubusercontent.com/u/22877400?v=3","gravatar_id":"","url":"https://api.github.com/users/behica","html_url":"https://github.com/behica","followers_url":"https://api.github.com/users/behica/followers","following_url":"https://api.github.com/users/behica/following{/other_user}","gists_url":"https://api.github.com/users/behica/gists{/gist_id}","starred_url":"https://api.github.com/users/behica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behica/subscriptions","organizations_url":"https://api.github.com/users/behica/orgs","repos_url":"https://api.github.com/users/behica/repos","events_url":"https://api.github.com/users/behica/events{/privacy}","received_events_url":"https://api.github.com/users/behica/received_events","type":"User","site_admin":false},"body":"Updated app to use Pundit and added authorizations. I also updated the validation to `before_action` on `application_controller` to allow guests to browse wikis and read them, but require sign-in before creating new or editing. I also updated the `destroy?` method to authorize if user is admin.\r\n\r\nThe user story didn't make any mention of assigning wikis to users yet, so I left it out. Is this something I should have done with this section or should I do it once the app is complete?","created_at":"2017-05-15T19:49:02Z","updated_at":"2017-05-16T00:55:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c86ce5d949f206ded93950be05680b83ddbe194","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/behica/blocipedia/pulls/3/commits","review_comments_url":"https://api.github.com/repos/behica/blocipedia/pulls/3/comments","review_comment_url":"https://api.github.com/repos/behica/blocipedia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/behica/blocipedia/issues/3/comments","statuses_url":"https://api.github.com/repos/behica/blocipedia/statuses/4e781987fc30d71fe81390409ec864ce82048780","head":{"label":"behica:user-roles","ref":"user-roles","sha":"4e781987fc30d71fe81390409ec864ce82048780","user":{"login":"behica","id":22877400,"avatar_url":"https://avatars2.githubusercontent.com/u/22877400?v=3","gravatar_id":"","url":"https://api.github.com/users/behica","html_url":"https://github.com/behica","followers_url":"https://api.github.com/users/behica/followers","following_url":"https://api.github.com/users/behica/following{/other_user}","gists_url":"https://api.github.com/users/behica/gists{/gist_id}","starred_url":"https://api.github.com/users/behica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behica/subscriptions","organizations_url":"https://api.github.com/users/behica/orgs","repos_url":"https://api.github.com/users/behica/repos","events_url":"https://api.github.com/users/behica/events{/privacy}","received_events_url":"https://api.github.com/users/behica/received_events","type":"User","site_admin":false},"repo":{"id":90975204,"name":"blocipedia","full_name":"behica/blocipedia","owner":{"login":"behica","id":22877400,"avatar_url":"https://avatars2.githubusercontent.com/u/22877400?v=3","gravatar_id":"","url":"https://api.github.com/users/behica","html_url":"https://github.com/behica","followers_url":"https://api.github.com/users/behica/followers","following_url":"https://api.github.com/users/behica/following{/other_user}","gists_url":"https://api.github.com/users/behica/gists{/gist_id}","starred_url":"https://api.github.com/users/behica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behica/subscriptions","organizations_url":"https://api.github.com/users/behica/orgs","repos_url":"https://api.github.com/users/behica/repos","events_url":"https://api.github.com/users/behica/events{/privacy}","received_events_url":"https://api.github.com/users/behica/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/behica/blocipedia","description":"a wiki for learning rails development","fork":false,"url":"https://api.github.com/repos/behica/blocipedia","forks_url":"https://api.github.com/repos/behica/blocipedia/forks","keys_url":"https://api.github.com/repos/behica/blocipedia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/behica/blocipedia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/behica/blocipedia/teams","hooks_url":"https://api.github.com/repos/behica/blocipedia/hooks","issue_events_url":"https://api.github.com/repos/behica/blocipedia/issues/events{/number}","events_url":"https://api.github.com/repos/behica/blocipedia/events","assignees_url":"https://api.github.com/repos/behica/blocipedia/assignees{/user}","branches_url":"https://api.github.com/repos/behica/blocipedia/branches{/branch}","tags_url":"https://api.github.com/repos/behica/blocipedia/tags","blobs_url":"https://api.github.com/repos/behica/blocipedia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/behica/blocipedia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/behica/blocipedia/git/refs{/sha}","trees_url":"https://api.github.com/repos/behica/blocipedia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/behica/blocipedia/statuses/{sha}","languages_url":"https://api.github.com/repos/behica/blocipedia/languages","stargazers_url":"https://api.github.com/repos/behica/blocipedia/stargazers","contributors_url":"https://api.github.com/repos/behica/blocipedia/contributors","subscribers_url":"https://api.github.com/repos/behica/blocipedia/subscribers","subscription_url":"https://api.github.com/repos/behica/blocipedia/subscription","commits_url":"https://api.github.com/repos/behica/blocipedia/commits{/sha}","git_commits_url":"https://api.github.com/repos/behica/blocipedia/git/commits{/sha}","comments_url":"https://api.github.com/repos/behica/blocipedia/comments{/number}","issue_comment_url":"https://api.github.com/repos/behica/blocipedia/issues/comments{/number}","contents_url":"https://api.github.com/repos/behica/blocipedia/contents/{+path}","compare_url":"https://api.github.com/repos/behica/blocipedia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/behica/blocipedia/merges","archive_url":"https://api.github.com/repos/behica/blocipedia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/behica/blocipedia/downloads","issues_url":"https://api.github.com/repos/behica/blocipedia/issues{/number}","pulls_url":"https://api.github.com/repos/behica/blocipedia/pulls{/number}","milestones_url":"https://api.github.com/repos/behica/blocipedia/milestones{/number}","notifications_url":"https://api.github.com/repos/behica/blocipedia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/behica/blocipedia/labels{/name}","releases_url":"https://api.github.com/repos/behica/blocipedia/releases{/id}","deployments_url":"https://api.github.com/repos/behica/blocipedia/deployments","created_at":"2017-05-11T12:11:15Z","updated_at":"2017-05-11T12:11:54Z","pushed_at":"2017-05-15T19:49:03Z","git_url":"git://github.com/behica/blocipedia.git","ssh_url":"git@github.com:behica/blocipedia.git","clone_url":"https://github.com/behica/blocipedia.git","svn_url":"https://github.com/behica/blocipedia","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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":"behica:master","ref":"master","sha":"cf15129bbed047f7ef51d2919907c3dbe6088074","user":{"login":"behica","id":22877400,"avatar_url":"https://avatars2.githubusercontent.com/u/22877400?v=3","gravatar_id":"","url":"https://api.github.com/users/behica","html_url":"https://github.com/behica","followers_url":"https://api.github.com/users/behica/followers","following_url":"https://api.github.com/users/behica/following{/other_user}","gists_url":"https://api.github.com/users/behica/gists{/gist_id}","starred_url":"https://api.github.com/users/behica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behica/subscriptions","organizations_url":"https://api.github.com/users/behica/orgs","repos_url":"https://api.github.com/users/behica/repos","events_url":"https://api.github.com/users/behica/events{/privacy}","received_events_url":"https://api.github.com/users/behica/received_events","type":"User","site_admin":false},"repo":{"id":90975204,"name":"blocipedia","full_name":"behica/blocipedia","owner":{"login":"behica","id":22877400,"avatar_url":"https://avatars2.githubusercontent.com/u/22877400?v=3","gravatar_id":"","url":"https://api.github.com/users/behica","html_url":"https://github.com/behica","followers_url":"https://api.github.com/users/behica/followers","following_url":"https://api.github.com/users/behica/following{/other_user}","gists_url":"https://api.github.com/users/behica/gists{/gist_id}","starred_url":"https://api.github.com/users/behica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behica/subscriptions","organizations_url":"https://api.github.com/users/behica/orgs","repos_url":"https://api.github.com/users/behica/repos","events_url":"https://api.github.com/users/behica/events{/privacy}","received_events_url":"https://api.github.com/users/behica/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/behica/blocipedia","description":"a wiki for learning rails development","fork":false,"url":"https://api.github.com/repos/behica/blocipedia","forks_url":"https://api.github.com/repos/behica/blocipedia/forks","keys_url":"https://api.github.com/repos/behica/blocipedia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/behica/blocipedia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/behica/blocipedia/teams","hooks_url":"https://api.github.com/repos/behica/blocipedia/hooks","issue_events_url":"https://api.github.com/repos/behica/blocipedia/issues/events{/number}","events_url":"https://api.github.com/repos/behica/blocipedia/events","assignees_url":"https://api.github.com/repos/behica/blocipedia/assignees{/user}","branches_url":"https://api.github.com/repos/behica/blocipedia/branches{/branch}","tags_url":"https://api.github.com/repos/behica/blocipedia/tags","blobs_url":"https://api.github.com/repos/behica/blocipedia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/behica/blocipedia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/behica/blocipedia/git/refs{/sha}","trees_url":"https://api.github.com/repos/behica/blocipedia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/behica/blocipedia/statuses/{sha}","languages_url":"https://api.github.com/repos/behica/blocipedia/languages","stargazers_url":"https://api.github.com/repos/behica/blocipedia/stargazers","contributors_url":"https://api.github.com/repos/behica/blocipedia/contributors","subscribers_url":"https://api.github.com/repos/behica/blocipedia/subscribers","subscription_url":"https://api.github.com/repos/behica/blocipedia/subscription","commits_url":"https://api.github.com/repos/behica/blocipedia/commits{/sha}","git_commits_url":"https://api.github.com/repos/behica/blocipedia/git/commits{/sha}","comments_url":"https://api.github.com/repos/behica/blocipedia/comments{/number}","issue_comment_url":"https://api.github.com/repos/behica/blocipedia/issues/comments{/number}","contents_url":"https://api.github.com/repos/behica/blocipedia/contents/{+path}","compare_url":"https://api.github.com/repos/behica/blocipedia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/behica/blocipedia/merges","archive_url":"https://api.github.com/repos/behica/blocipedia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/behica/blocipedia/downloads","issues_url":"https://api.github.com/repos/behica/blocipedia/issues{/number}","pulls_url":"https://api.github.com/repos/behica/blocipedia/pulls{/number}","milestones_url":"https://api.github.com/repos/behica/blocipedia/milestones{/number}","notifications_url":"https://api.github.com/repos/behica/blocipedia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/behica/blocipedia/labels{/name}","releases_url":"https://api.github.com/repos/behica/blocipedia/releases{/id}","deployments_url":"https://api.github.com/repos/behica/blocipedia/deployments","created_at":"2017-05-11T12:11:15Z","updated_at":"2017-05-11T12:11:54Z","pushed_at":"2017-05-15T19:49:03Z","git_url":"git://github.com/behica/blocipedia.git","ssh_url":"git@github.com:behica/blocipedia.git","clone_url":"https://github.com/behica/blocipedia.git","svn_url":"https://github.com/behica/blocipedia","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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/behica/blocipedia/pulls/3"},"html":{"href":"https://github.com/behica/blocipedia/pull/3"},"issue":{"href":"https://api.github.com/repos/behica/blocipedia/issues/3"},"comments":{"href":"https://api.github.com/repos/behica/blocipedia/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/behica/blocipedia/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/behica/blocipedia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/behica/blocipedia/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/behica/blocipedia/statuses/4e781987fc30d71fe81390409ec864ce82048780"}}}}
{"actor":{"display_login":"bobbilee19"}}