payload: {"action":"created","comment":{"url":"https://api.github.com/repos/erinrin/mercari_59e/pulls/comments/331900206","pull_request_review_id":297974007,"id":331900206,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMTkwMDIwNg==","diff_hunk":"@@ -90,6 +100,6 @@ def item_params\n \n \n   def set_item\n-  Item.find(params[:id])\n+    Item.find(params[:id])","path":"app/controllers/items_controller.rb","position":57,"original_position":52,"commit_id":"8824610d0d01a20e4e01b531e1f45bd296d2f547","original_commit_id":"5b356f06d74c7de1b7bf43d730d7ee8bf35b2745","user":{"login":"erinrin","id":54498825,"node_id":"MDQ6VXNlcjU0NDk4ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/54498825?v=4","gravatar_id":"","url":"https://api.github.com/users/erinrin","html_url":"https://github.com/erinrin","followers_url":"https://api.github.com/users/erinrin/followers","following_url":"https://api.github.com/users/erinrin/following{/other_user}","gists_url":"https://api.github.com/users/erinrin/gists{/gist_id}","starred_url":"https://api.github.com/users/erinrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinrin/subscriptions","organizations_url":"https://api.github.com/users/erinrin/orgs","repos_url":"https://api.github.com/users/erinrin/repos","events_url":"https://api.github.com/users/erinrin/events{/privacy}","received_events_url":"https://api.github.com/users/erinrin/received_events","type":"User","site_admin":false},"body":"set_itemをItem.find(params[:id])にしている理由なのですが、決済処理に必要なレコードを書く際にインスタンス変数にしない方がわかりやすい処理があったのであえてset_itemメソッドの中でインスタンス変数の定義をしておりません。\r\nそれにしたがってbefore_actionも書かないことにしたのですが...いかがでしょうか？","created_at":"2019-10-07T08:37:54Z","updated_at":"2019-10-07T08:37:54Z","html_url":"https://github.com/erinrin/mercari_59e/pull/49#discussion_r331900206","pull_request_url":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/erinrin/mercari_59e/pulls/comments/331900206"},"html":{"href":"https://github.com/erinrin/mercari_59e/pull/49#discussion_r331900206"},"pull_request":{"href":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49"}},"in_reply_to_id":331882853},"pull_request":{"url":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49","id":325135959,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI1MTM1OTU5","html_url":"https://github.com/erinrin/mercari_59e/pull/49","diff_url":"https://github.com/erinrin/mercari_59e/pull/49.diff","patch_url":"https://github.com/erinrin/mercari_59e/pull/49.patch","issue_url":"https://api.github.com/repos/erinrin/mercari_59e/issues/49","number":49,"state":"open","locked":false,"title":"add_delete_items1","user":{"login":"erinrin","id":54498825,"node_id":"MDQ6VXNlcjU0NDk4ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/54498825?v=4","gravatar_id":"","url":"https://api.github.com/users/erinrin","html_url":"https://github.com/erinrin","followers_url":"https://api.github.com/users/erinrin/followers","following_url":"https://api.github.com/users/erinrin/following{/other_user}","gists_url":"https://api.github.com/users/erinrin/gists{/gist_id}","starred_url":"https://api.github.com/users/erinrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinrin/subscriptions","organizations_url":"https://api.github.com/users/erinrin/orgs","repos_url":"https://api.github.com/users/erinrin/repos","events_url":"https://api.github.com/users/erinrin/events{/privacy}","received_events_url":"https://api.github.com/users/erinrin/received_events","type":"User","site_admin":false},"body":"# What\r\n出品した商品を削除するため\r\n# Why\r\nメルカリに削除機能が必要なので","created_at":"2019-10-07T05:39:50Z","updated_at":"2019-10-07T08:37:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cbd9ccf00b283ed4076335116e6acb8a1c2cf90","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49/commits","review_comments_url":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49/comments","review_comment_url":"https://api.github.com/repos/erinrin/mercari_59e/pulls/comments{/number}","comments_url":"https://api.github.com/repos/erinrin/mercari_59e/issues/49/comments","statuses_url":"https://api.github.com/repos/erinrin/mercari_59e/statuses/8824610d0d01a20e4e01b531e1f45bd296d2f547","head":{"label":"erinrin:add_delete_items","ref":"add_delete_items","sha":"8824610d0d01a20e4e01b531e1f45bd296d2f547","user":{"login":"erinrin","id":54498825,"node_id":"MDQ6VXNlcjU0NDk4ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/54498825?v=4","gravatar_id":"","url":"https://api.github.com/users/erinrin","html_url":"https://github.com/erinrin","followers_url":"https://api.github.com/users/erinrin/followers","following_url":"https://api.github.com/users/erinrin/following{/other_user}","gists_url":"https://api.github.com/users/erinrin/gists{/gist_id}","starred_url":"https://api.github.com/users/erinrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinrin/subscriptions","organizations_url":"https://api.github.com/users/erinrin/orgs","repos_url":"https://api.github.com/users/erinrin/repos","events_url":"https://api.github.com/users/erinrin/events{/privacy}","received_events_url":"https://api.github.com/users/erinrin/received_events","type":"User","site_admin":false},"repo":{"id":209913380,"node_id":"MDEwOlJlcG9zaXRvcnkyMDk5MTMzODA=","name":"mercari_59e","full_name":"erinrin/mercari_59e","private":false,"owner":{"login":"erinrin","id":54498825,"node_id":"MDQ6VXNlcjU0NDk4ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/54498825?v=4","gravatar_id":"","url":"https://api.github.com/users/erinrin","html_url":"https://github.com/erinrin","followers_url":"https://api.github.com/users/erinrin/followers","following_url":"https://api.github.com/users/erinrin/following{/other_user}","gists_url":"https://api.github.com/users/erinrin/gists{/gist_id}","starred_url":"https://api.github.com/users/erinrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinrin/subscriptions","organizations_url":"https://api.github.com/users/erinrin/orgs","repos_url":"https://api.github.com/users/erinrin/repos","events_url":"https://api.github.com/users/erinrin/events{/privacy}","received_events_url":"https://api.github.com/users/erinrin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/erinrin/mercari_59e","description":null,"fork":false,"url":"https://api.github.com/repos/erinrin/mercari_59e","forks_url":"https://api.github.com/repos/erinrin/mercari_59e/forks","keys_url":"https://api.github.com/repos/erinrin/mercari_59e/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erinrin/mercari_59e/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erinrin/mercari_59e/teams","hooks_url":"https://api.github.com/repos/erinrin/mercari_59e/hooks","issue_events_url":"https://api.github.com/repos/erinrin/mercari_59e/issues/events{/number}","events_url":"https://api.github.com/repos/erinrin/mercari_59e/events","assignees_url":"https://api.github.com/repos/erinrin/mercari_59e/assignees{/user}","branches_url":"https://api.github.com/repos/erinrin/mercari_59e/branches{/branch}","tags_url":"https://api.github.com/repos/erinrin/mercari_59e/tags","blobs_url":"https://api.github.com/repos/erinrin/mercari_59e/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erinrin/mercari_59e/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erinrin/mercari_59e/git/refs{/sha}","trees_url":"https://api.github.com/repos/erinrin/mercari_59e/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erinrin/mercari_59e/statuses/{sha}","languages_url":"https://api.github.com/repos/erinrin/mercari_59e/languages","stargazers_url":"https://api.github.com/repos/erinrin/mercari_59e/stargazers","contributors_url":"https://api.github.com/repos/erinrin/mercari_59e/contributors","subscribers_url":"https://api.github.com/repos/erinrin/mercari_59e/subscribers","subscription_url":"https://api.github.com/repos/erinrin/mercari_59e/subscription","commits_url":"https://api.github.com/repos/erinrin/mercari_59e/commits{/sha}","git_commits_url":"https://api.github.com/repos/erinrin/mercari_59e/git/commits{/sha}","comments_url":"https://api.github.com/repos/erinrin/mercari_59e/comments{/number}","issue_comment_url":"https://api.github.com/repos/erinrin/mercari_59e/issues/comments{/number}","contents_url":"https://api.github.com/repos/erinrin/mercari_59e/contents/{+path}","compare_url":"https://api.github.com/repos/erinrin/mercari_59e/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erinrin/mercari_59e/merges","archive_url":"https://api.github.com/repos/erinrin/mercari_59e/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erinrin/mercari_59e/downloads","issues_url":"https://api.github.com/repos/erinrin/mercari_59e/issues{/number}","pulls_url":"https://api.github.com/repos/erinrin/mercari_59e/pulls{/number}","milestones_url":"https://api.github.com/repos/erinrin/mercari_59e/milestones{/number}","notifications_url":"https://api.github.com/repos/erinrin/mercari_59e/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erinrin/mercari_59e/labels{/name}","releases_url":"https://api.github.com/repos/erinrin/mercari_59e/releases{/id}","deployments_url":"https://api.github.com/repos/erinrin/mercari_59e/deployments","created_at":"2019-09-21T02:35:13Z","updated_at":"2019-10-06T05:31:07Z","pushed_at":"2019-10-07T08:30:22Z","git_url":"git://github.com/erinrin/mercari_59e.git","ssh_url":"git@github.com:erinrin/mercari_59e.git","clone_url":"https://github.com/erinrin/mercari_59e.git","svn_url":"https://github.com/erinrin/mercari_59e","homepage":null,"size":626,"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,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"erinrin:master","ref":"master","sha":"f6e77f7872e52d3e49364500dc1f94621a678ede","user":{"login":"erinrin","id":54498825,"node_id":"MDQ6VXNlcjU0NDk4ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/54498825?v=4","gravatar_id":"","url":"https://api.github.com/users/erinrin","html_url":"https://github.com/erinrin","followers_url":"https://api.github.com/users/erinrin/followers","following_url":"https://api.github.com/users/erinrin/following{/other_user}","gists_url":"https://api.github.com/users/erinrin/gists{/gist_id}","starred_url":"https://api.github.com/users/erinrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinrin/subscriptions","organizations_url":"https://api.github.com/users/erinrin/orgs","repos_url":"https://api.github.com/users/erinrin/repos","events_url":"https://api.github.com/users/erinrin/events{/privacy}","received_events_url":"https://api.github.com/users/erinrin/received_events","type":"User","site_admin":false},"repo":{"id":209913380,"node_id":"MDEwOlJlcG9zaXRvcnkyMDk5MTMzODA=","name":"mercari_59e","full_name":"erinrin/mercari_59e","private":false,"owner":{"login":"erinrin","id":54498825,"node_id":"MDQ6VXNlcjU0NDk4ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/54498825?v=4","gravatar_id":"","url":"https://api.github.com/users/erinrin","html_url":"https://github.com/erinrin","followers_url":"https://api.github.com/users/erinrin/followers","following_url":"https://api.github.com/users/erinrin/following{/other_user}","gists_url":"https://api.github.com/users/erinrin/gists{/gist_id}","starred_url":"https://api.github.com/users/erinrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinrin/subscriptions","organizations_url":"https://api.github.com/users/erinrin/orgs","repos_url":"https://api.github.com/users/erinrin/repos","events_url":"https://api.github.com/users/erinrin/events{/privacy}","received_events_url":"https://api.github.com/users/erinrin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/erinrin/mercari_59e","description":null,"fork":false,"url":"https://api.github.com/repos/erinrin/mercari_59e","forks_url":"https://api.github.com/repos/erinrin/mercari_59e/forks","keys_url":"https://api.github.com/repos/erinrin/mercari_59e/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erinrin/mercari_59e/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erinrin/mercari_59e/teams","hooks_url":"https://api.github.com/repos/erinrin/mercari_59e/hooks","issue_events_url":"https://api.github.com/repos/erinrin/mercari_59e/issues/events{/number}","events_url":"https://api.github.com/repos/erinrin/mercari_59e/events","assignees_url":"https://api.github.com/repos/erinrin/mercari_59e/assignees{/user}","branches_url":"https://api.github.com/repos/erinrin/mercari_59e/branches{/branch}","tags_url":"https://api.github.com/repos/erinrin/mercari_59e/tags","blobs_url":"https://api.github.com/repos/erinrin/mercari_59e/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erinrin/mercari_59e/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erinrin/mercari_59e/git/refs{/sha}","trees_url":"https://api.github.com/repos/erinrin/mercari_59e/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erinrin/mercari_59e/statuses/{sha}","languages_url":"https://api.github.com/repos/erinrin/mercari_59e/languages","stargazers_url":"https://api.github.com/repos/erinrin/mercari_59e/stargazers","contributors_url":"https://api.github.com/repos/erinrin/mercari_59e/contributors","subscribers_url":"https://api.github.com/repos/erinrin/mercari_59e/subscribers","subscription_url":"https://api.github.com/repos/erinrin/mercari_59e/subscription","commits_url":"https://api.github.com/repos/erinrin/mercari_59e/commits{/sha}","git_commits_url":"https://api.github.com/repos/erinrin/mercari_59e/git/commits{/sha}","comments_url":"https://api.github.com/repos/erinrin/mercari_59e/comments{/number}","issue_comment_url":"https://api.github.com/repos/erinrin/mercari_59e/issues/comments{/number}","contents_url":"https://api.github.com/repos/erinrin/mercari_59e/contents/{+path}","compare_url":"https://api.github.com/repos/erinrin/mercari_59e/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erinrin/mercari_59e/merges","archive_url":"https://api.github.com/repos/erinrin/mercari_59e/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erinrin/mercari_59e/downloads","issues_url":"https://api.github.com/repos/erinrin/mercari_59e/issues{/number}","pulls_url":"https://api.github.com/repos/erinrin/mercari_59e/pulls{/number}","milestones_url":"https://api.github.com/repos/erinrin/mercari_59e/milestones{/number}","notifications_url":"https://api.github.com/repos/erinrin/mercari_59e/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erinrin/mercari_59e/labels{/name}","releases_url":"https://api.github.com/repos/erinrin/mercari_59e/releases{/id}","deployments_url":"https://api.github.com/repos/erinrin/mercari_59e/deployments","created_at":"2019-09-21T02:35:13Z","updated_at":"2019-10-06T05:31:07Z","pushed_at":"2019-10-07T08:30:22Z","git_url":"git://github.com/erinrin/mercari_59e.git","ssh_url":"git@github.com:erinrin/mercari_59e.git","clone_url":"https://github.com/erinrin/mercari_59e.git","svn_url":"https://github.com/erinrin/mercari_59e","homepage":null,"size":626,"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,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49"},"html":{"href":"https://github.com/erinrin/mercari_59e/pull/49"},"issue":{"href":"https://api.github.com/repos/erinrin/mercari_59e/issues/49"},"comments":{"href":"https://api.github.com/repos/erinrin/mercari_59e/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/erinrin/mercari_59e/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/erinrin/mercari_59e/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/erinrin/mercari_59e/statuses/8824610d0d01a20e4e01b531e1f45bd296d2f547"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"erinrin"}}