{"action":"created","comment":{"url":"https://api.github.com/repos/SvetaAn18/test/pulls/comments/212805463","pull_request_review_id":149517639,"id":212805463,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjgwNTQ2Mw==","diff_hunk":"@@ -1,5 +1,5 @@\n class PostsController < ApplicationController\n-  load_and_authorize_resource except: :index\n+  load_and_authorize_resource except: [:index, :show]","path":"app/controllers/posts_controller.rb","position":3,"original_position":3,"commit_id":"36004b40d8e399479fad5dd893c1f96c8f0beb83","original_commit_id":"36004b40d8e399479fad5dd893c1f96c8f0beb83","user":{"login":"SvetaAn18","id":40295495,"node_id":"MDQ6VXNlcjQwMjk1NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/40295495?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetaAn18","html_url":"https://github.com/SvetaAn18","followers_url":"https://api.github.com/users/SvetaAn18/followers","following_url":"https://api.github.com/users/SvetaAn18/following{/other_user}","gists_url":"https://api.github.com/users/SvetaAn18/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetaAn18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetaAn18/subscriptions","organizations_url":"https://api.github.com/users/SvetaAn18/orgs","repos_url":"https://api.github.com/users/SvetaAn18/repos","events_url":"https://api.github.com/users/SvetaAn18/events{/privacy}","received_events_url":"https://api.github.com/users/SvetaAn18/received_events","type":"User","site_admin":false},"body":"Но надо же сделать так, чтобы незарегистрированный польз-ль мог только читать объявления. И если уберем из load_and_authorize_resource index и show, тогда может \r\nbefore_action :can_read? only: [ :index, :show], или\r\nskip_authorize_resource :only: [ :index, :show], но по-моему это все одно и то же","created_at":"2018-08-25T18:27:05Z","updated_at":"2018-08-25T18:27:05Z","html_url":"https://github.com/SvetaAn18/test/pull/4#discussion_r212805463","pull_request_url":"https://api.github.com/repos/SvetaAn18/test/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/SvetaAn18/test/pulls/comments/212805463"},"html":{"href":"https://github.com/SvetaAn18/test/pull/4#discussion_r212805463"},"pull_request":{"href":"https://api.github.com/repos/SvetaAn18/test/pulls/4"}},"in_reply_to_id":212791603},"pull_request":{"url":"https://api.github.com/repos/SvetaAn18/test/pulls/4","id":210745633,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNzQ1NjMz","html_url":"https://github.com/SvetaAn18/test/pull/4","diff_url":"https://github.com/SvetaAn18/test/pull/4.diff","patch_url":"https://github.com/SvetaAn18/test/pull/4.patch","issue_url":"https://api.github.com/repos/SvetaAn18/test/issues/4","number":4,"state":"open","locked":false,"title":"Add enam, editing categories","user":{"login":"SvetaAn18","id":40295495,"node_id":"MDQ6VXNlcjQwMjk1NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/40295495?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetaAn18","html_url":"https://github.com/SvetaAn18","followers_url":"https://api.github.com/users/SvetaAn18/followers","following_url":"https://api.github.com/users/SvetaAn18/following{/other_user}","gists_url":"https://api.github.com/users/SvetaAn18/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetaAn18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetaAn18/subscriptions","organizations_url":"https://api.github.com/users/SvetaAn18/orgs","repos_url":"https://api.github.com/users/SvetaAn18/repos","events_url":"https://api.github.com/users/SvetaAn18/events{/privacy}","received_events_url":"https://api.github.com/users/SvetaAn18/received_events","type":"User","site_admin":false},"body":"Отредактировала категории, убрала тот некрасивый код. Добавила enam, немного подправила ablity, но там еще надо поработать.","created_at":"2018-08-24T13:47:43Z","updated_at":"2018-08-25T18:27:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"692977f805edb24a697bb39f1182b7c386631f7a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SvetaAn18/test/pulls/4/commits","review_comments_url":"https://api.github.com/repos/SvetaAn18/test/pulls/4/comments","review_comment_url":"https://api.github.com/repos/SvetaAn18/test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SvetaAn18/test/issues/4/comments","statuses_url":"https://api.github.com/repos/SvetaAn18/test/statuses/36004b40d8e399479fad5dd893c1f96c8f0beb83","head":{"label":"SvetaAn18:role-wth-enum","ref":"role-wth-enum","sha":"36004b40d8e399479fad5dd893c1f96c8f0beb83","user":{"login":"SvetaAn18","id":40295495,"node_id":"MDQ6VXNlcjQwMjk1NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/40295495?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetaAn18","html_url":"https://github.com/SvetaAn18","followers_url":"https://api.github.com/users/SvetaAn18/followers","following_url":"https://api.github.com/users/SvetaAn18/following{/other_user}","gists_url":"https://api.github.com/users/SvetaAn18/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetaAn18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetaAn18/subscriptions","organizations_url":"https://api.github.com/users/SvetaAn18/orgs","repos_url":"https://api.github.com/users/SvetaAn18/repos","events_url":"https://api.github.com/users/SvetaAn18/events{/privacy}","received_events_url":"https://api.github.com/users/SvetaAn18/received_events","type":"User","site_admin":false},"repo":{"id":138420666,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg0MjA2NjY=","name":"test","full_name":"SvetaAn18/test","owner":{"login":"SvetaAn18","id":40295495,"node_id":"MDQ6VXNlcjQwMjk1NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/40295495?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetaAn18","html_url":"https://github.com/SvetaAn18","followers_url":"https://api.github.com/users/SvetaAn18/followers","following_url":"https://api.github.com/users/SvetaAn18/following{/other_user}","gists_url":"https://api.github.com/users/SvetaAn18/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetaAn18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetaAn18/subscriptions","organizations_url":"https://api.github.com/users/SvetaAn18/orgs","repos_url":"https://api.github.com/users/SvetaAn18/repos","events_url":"https://api.github.com/users/SvetaAn18/events{/privacy}","received_events_url":"https://api.github.com/users/SvetaAn18/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SvetaAn18/test","description":null,"fork":false,"url":"https://api.github.com/repos/SvetaAn18/test","forks_url":"https://api.github.com/repos/SvetaAn18/test/forks","keys_url":"https://api.github.com/repos/SvetaAn18/test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SvetaAn18/test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SvetaAn18/test/teams","hooks_url":"https://api.github.com/repos/SvetaAn18/test/hooks","issue_events_url":"https://api.github.com/repos/SvetaAn18/test/issues/events{/number}","events_url":"https://api.github.com/repos/SvetaAn18/test/events","assignees_url":"https://api.github.com/repos/SvetaAn18/test/assignees{/user}","branches_url":"https://api.github.com/repos/SvetaAn18/test/branches{/branch}","tags_url":"https://api.github.com/repos/SvetaAn18/test/tags","blobs_url":"https://api.github.com/repos/SvetaAn18/test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SvetaAn18/test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SvetaAn18/test/git/refs{/sha}","trees_url":"https://api.github.com/repos/SvetaAn18/test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SvetaAn18/test/statuses/{sha}","languages_url":"https://api.github.com/repos/SvetaAn18/test/languages","stargazers_url":"https://api.github.com/repos/SvetaAn18/test/stargazers","contributors_url":"https://api.github.com/repos/SvetaAn18/test/contributors","subscribers_url":"https://api.github.com/repos/SvetaAn18/test/subscribers","subscription_url":"https://api.github.com/repos/SvetaAn18/test/subscription","commits_url":"https://api.github.com/repos/SvetaAn18/test/commits{/sha}","git_commits_url":"https://api.github.com/repos/SvetaAn18/test/git/commits{/sha}","comments_url":"https://api.github.com/repos/SvetaAn18/test/comments{/number}","issue_comment_url":"https://api.github.com/repos/SvetaAn18/test/issues/comments{/number}","contents_url":"https://api.github.com/repos/SvetaAn18/test/contents/{+path}","compare_url":"https://api.github.com/repos/SvetaAn18/test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SvetaAn18/test/merges","archive_url":"https://api.github.com/repos/SvetaAn18/test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SvetaAn18/test/downloads","issues_url":"https://api.github.com/repos/SvetaAn18/test/issues{/number}","pulls_url":"https://api.github.com/repos/SvetaAn18/test/pulls{/number}","milestones_url":"https://api.github.com/repos/SvetaAn18/test/milestones{/number}","notifications_url":"https://api.github.com/repos/SvetaAn18/test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SvetaAn18/test/labels{/name}","releases_url":"https://api.github.com/repos/SvetaAn18/test/releases{/id}","deployments_url":"https://api.github.com/repos/SvetaAn18/test/deployments","created_at":"2018-06-23T17:25:18Z","updated_at":"2018-08-24T06:23:30Z","pushed_at":"2018-08-24T13:47:43Z","git_url":"git://github.com/SvetaAn18/test.git","ssh_url":"git@github.com:SvetaAn18/test.git","clone_url":"https://github.com/SvetaAn18/test.git","svn_url":"https://github.com/SvetaAn18/test","homepage":null,"size":126,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SvetaAn18:master","ref":"master","sha":"f57597dccd59d44750959be2f78f37ed172d7e77","user":{"login":"SvetaAn18","id":40295495,"node_id":"MDQ6VXNlcjQwMjk1NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/40295495?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetaAn18","html_url":"https://github.com/SvetaAn18","followers_url":"https://api.github.com/users/SvetaAn18/followers","following_url":"https://api.github.com/users/SvetaAn18/following{/other_user}","gists_url":"https://api.github.com/users/SvetaAn18/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetaAn18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetaAn18/subscriptions","organizations_url":"https://api.github.com/users/SvetaAn18/orgs","repos_url":"https://api.github.com/users/SvetaAn18/repos","events_url":"https://api.github.com/users/SvetaAn18/events{/privacy}","received_events_url":"https://api.github.com/users/SvetaAn18/received_events","type":"User","site_admin":false},"repo":{"id":138420666,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg0MjA2NjY=","name":"test","full_name":"SvetaAn18/test","owner":{"login":"SvetaAn18","id":40295495,"node_id":"MDQ6VXNlcjQwMjk1NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/40295495?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetaAn18","html_url":"https://github.com/SvetaAn18","followers_url":"https://api.github.com/users/SvetaAn18/followers","following_url":"https://api.github.com/users/SvetaAn18/following{/other_user}","gists_url":"https://api.github.com/users/SvetaAn18/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetaAn18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetaAn18/subscriptions","organizations_url":"https://api.github.com/users/SvetaAn18/orgs","repos_url":"https://api.github.com/users/SvetaAn18/repos","events_url":"https://api.github.com/users/SvetaAn18/events{/privacy}","received_events_url":"https://api.github.com/users/SvetaAn18/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SvetaAn18/test","description":null,"fork":false,"url":"https://api.github.com/repos/SvetaAn18/test","forks_url":"https://api.github.com/repos/SvetaAn18/test/forks","keys_url":"https://api.github.com/repos/SvetaAn18/test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SvetaAn18/test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SvetaAn18/test/teams","hooks_url":"https://api.github.com/repos/SvetaAn18/test/hooks","issue_events_url":"https://api.github.com/repos/SvetaAn18/test/issues/events{/number}","events_url":"https://api.github.com/repos/SvetaAn18/test/events","assignees_url":"https://api.github.com/repos/SvetaAn18/test/assignees{/user}","branches_url":"https://api.github.com/repos/SvetaAn18/test/branches{/branch}","tags_url":"https://api.github.com/repos/SvetaAn18/test/tags","blobs_url":"https://api.github.com/repos/SvetaAn18/test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SvetaAn18/test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SvetaAn18/test/git/refs{/sha}","trees_url":"https://api.github.com/repos/SvetaAn18/test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SvetaAn18/test/statuses/{sha}","languages_url":"https://api.github.com/repos/SvetaAn18/test/languages","stargazers_url":"https://api.github.com/repos/SvetaAn18/test/stargazers","contributors_url":"https://api.github.com/repos/SvetaAn18/test/contributors","subscribers_url":"https://api.github.com/repos/SvetaAn18/test/subscribers","subscription_url":"https://api.github.com/repos/SvetaAn18/test/subscription","commits_url":"https://api.github.com/repos/SvetaAn18/test/commits{/sha}","git_commits_url":"https://api.github.com/repos/SvetaAn18/test/git/commits{/sha}","comments_url":"https://api.github.com/repos/SvetaAn18/test/comments{/number}","issue_comment_url":"https://api.github.com/repos/SvetaAn18/test/issues/comments{/number}","contents_url":"https://api.github.com/repos/SvetaAn18/test/contents/{+path}","compare_url":"https://api.github.com/repos/SvetaAn18/test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SvetaAn18/test/merges","archive_url":"https://api.github.com/repos/SvetaAn18/test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SvetaAn18/test/downloads","issues_url":"https://api.github.com/repos/SvetaAn18/test/issues{/number}","pulls_url":"https://api.github.com/repos/SvetaAn18/test/pulls{/number}","milestones_url":"https://api.github.com/repos/SvetaAn18/test/milestones{/number}","notifications_url":"https://api.github.com/repos/SvetaAn18/test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SvetaAn18/test/labels{/name}","releases_url":"https://api.github.com/repos/SvetaAn18/test/releases{/id}","deployments_url":"https://api.github.com/repos/SvetaAn18/test/deployments","created_at":"2018-06-23T17:25:18Z","updated_at":"2018-08-24T06:23:30Z","pushed_at":"2018-08-24T13:47:43Z","git_url":"git://github.com/SvetaAn18/test.git","ssh_url":"git@github.com:SvetaAn18/test.git","clone_url":"https://github.com/SvetaAn18/test.git","svn_url":"https://github.com/SvetaAn18/test","homepage":null,"size":126,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SvetaAn18/test/pulls/4"},"html":{"href":"https://github.com/SvetaAn18/test/pull/4"},"issue":{"href":"https://api.github.com/repos/SvetaAn18/test/issues/4"},"comments":{"href":"https://api.github.com/repos/SvetaAn18/test/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/SvetaAn18/test/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/SvetaAn18/test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SvetaAn18/test/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/SvetaAn18/test/statuses/36004b40d8e399479fad5dd893c1f96c8f0beb83"}},"author_association":"OWNER"}}
{"actor":{"display_login":"SvetaAn18"}}