{"action":"created","comment":{"url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/comments/131519890","pull_request_review_id":54513242,"id":131519890,"diff_hunk":"@@ -3,4 +3,13 @@ class ApplicationController < ActionController::Base\n   # For APIs, you may want to use :null_session instead.\n   protect_from_forgery with: :exception\n   before_action :authenticate_user!\n+  before_action :configure_permitted_parameters, if: :devise_controller?\n+\n+  protected","path":"app/controllers/application_controller.rb","position":6,"original_position":6,"commit_id":"fcbcf3cd197c913627133ffe0817653bd0a1dfec","original_commit_id":"fcbcf3cd197c913627133ffe0817653bd0a1dfec","user":{"login":"Tatsukiz","id":26081655,"avatar_url":"https://avatars3.githubusercontent.com/u/26081655?v=4","gravatar_id":"","url":"https://api.github.com/users/Tatsukiz","html_url":"https://github.com/Tatsukiz","followers_url":"https://api.github.com/users/Tatsukiz/followers","following_url":"https://api.github.com/users/Tatsukiz/following{/other_user}","gists_url":"https://api.github.com/users/Tatsukiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatsukiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatsukiz/subscriptions","organizations_url":"https://api.github.com/users/Tatsukiz/orgs","repos_url":"https://api.github.com/users/Tatsukiz/repos","events_url":"https://api.github.com/users/Tatsukiz/events{/privacy}","received_events_url":"https://api.github.com/users/Tatsukiz/received_events","type":"User","site_admin":false},"body":"アドバイスありがとうございます！\r\n\r\nprotectedとprivateの違いについて話されているソースをいくつか読み、サンプルコードを動かし、理解ができました。\r\nどちらもクラス外部から呼び出せないのは共通していますが、privateの方protectedよりも外部に見せないと言う保守性が強いようですね。\r\n\r\n具体的にはprotectedを適応したメソッドは、メソッド定義式とinstance_evalとinstance_variable_setをレシーバーに適応させる事で使える。って言う事ですよね？\r\nprotectedを調べるに付随して、いくつか分からない事柄があったので勉強になりました。\r\n\r\nただ、肝心な運用方法の違いをキチンと理解ができませんでした。\r\n上記の方法を利用してprotectedとprivateを使い分けるようの動きを設定するのはどういった場合なのでしょうか？","created_at":"2017-08-05T10:48:42Z","updated_at":"2017-08-05T10:48:42Z","html_url":"https://github.com/Tatsukiz/chat-space/pull/10#discussion_r131519890","pull_request_url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/comments/131519890"},"html":{"href":"https://github.com/Tatsukiz/chat-space/pull/10#discussion_r131519890"},"pull_request":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10","id":133681973,"html_url":"https://github.com/Tatsukiz/chat-space/pull/10","diff_url":"https://github.com/Tatsukiz/chat-space/pull/10.diff","patch_url":"https://github.com/Tatsukiz/chat-space/pull/10.patch","issue_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues/10","number":10,"state":"open","locked":false,"title":"Add menbers edit group & menbers","user":{"login":"Tatsukiz","id":26081655,"avatar_url":"https://avatars3.githubusercontent.com/u/26081655?v=4","gravatar_id":"","url":"https://api.github.com/users/Tatsukiz","html_url":"https://github.com/Tatsukiz","followers_url":"https://api.github.com/users/Tatsukiz/followers","following_url":"https://api.github.com/users/Tatsukiz/following{/other_user}","gists_url":"https://api.github.com/users/Tatsukiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatsukiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatsukiz/subscriptions","organizations_url":"https://api.github.com/users/Tatsukiz/orgs","repos_url":"https://api.github.com/users/Tatsukiz/repos","events_url":"https://api.github.com/users/Tatsukiz/events{/privacy}","received_events_url":"https://api.github.com/users/Tatsukiz/received_events","type":"User","site_admin":false},"body":"What:*グループ作成編集機能の実装、メンバー追加機能の実装*\r\nWhy:*チャットを行う為*","created_at":"2017-08-02T11:12:55Z","updated_at":"2017-08-05T10:48:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42181251cd999d2304760f6620689663ba9904a4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues/10/comments","statuses_url":"https://api.github.com/repos/Tatsukiz/chat-space/statuses/fcbcf3cd197c913627133ffe0817653bd0a1dfec","head":{"label":"Tatsukiz:Add_menbers_Edit_group_&_menbers","ref":"Add_menbers_Edit_group_&_menbers","sha":"fcbcf3cd197c913627133ffe0817653bd0a1dfec","user":{"login":"Tatsukiz","id":26081655,"avatar_url":"https://avatars3.githubusercontent.com/u/26081655?v=4","gravatar_id":"","url":"https://api.github.com/users/Tatsukiz","html_url":"https://github.com/Tatsukiz","followers_url":"https://api.github.com/users/Tatsukiz/followers","following_url":"https://api.github.com/users/Tatsukiz/following{/other_user}","gists_url":"https://api.github.com/users/Tatsukiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatsukiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatsukiz/subscriptions","organizations_url":"https://api.github.com/users/Tatsukiz/orgs","repos_url":"https://api.github.com/users/Tatsukiz/repos","events_url":"https://api.github.com/users/Tatsukiz/events{/privacy}","received_events_url":"https://api.github.com/users/Tatsukiz/received_events","type":"User","site_admin":false},"repo":{"id":91441294,"name":"chat-space","full_name":"Tatsukiz/chat-space","owner":{"login":"Tatsukiz","id":26081655,"avatar_url":"https://avatars3.githubusercontent.com/u/26081655?v=4","gravatar_id":"","url":"https://api.github.com/users/Tatsukiz","html_url":"https://github.com/Tatsukiz","followers_url":"https://api.github.com/users/Tatsukiz/followers","following_url":"https://api.github.com/users/Tatsukiz/following{/other_user}","gists_url":"https://api.github.com/users/Tatsukiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatsukiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatsukiz/subscriptions","organizations_url":"https://api.github.com/users/Tatsukiz/orgs","repos_url":"https://api.github.com/users/Tatsukiz/repos","events_url":"https://api.github.com/users/Tatsukiz/events{/privacy}","received_events_url":"https://api.github.com/users/Tatsukiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tatsukiz/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Tatsukiz/chat-space","forks_url":"https://api.github.com/repos/Tatsukiz/chat-space/forks","keys_url":"https://api.github.com/repos/Tatsukiz/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tatsukiz/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tatsukiz/chat-space/teams","hooks_url":"https://api.github.com/repos/Tatsukiz/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Tatsukiz/chat-space/events","assignees_url":"https://api.github.com/repos/Tatsukiz/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Tatsukiz/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Tatsukiz/chat-space/tags","blobs_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tatsukiz/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Tatsukiz/chat-space/languages","stargazers_url":"https://api.github.com/repos/Tatsukiz/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Tatsukiz/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Tatsukiz/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Tatsukiz/chat-space/subscription","commits_url":"https://api.github.com/repos/Tatsukiz/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tatsukiz/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tatsukiz/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Tatsukiz/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tatsukiz/chat-space/merges","archive_url":"https://api.github.com/repos/Tatsukiz/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tatsukiz/chat-space/downloads","issues_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Tatsukiz/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Tatsukiz/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tatsukiz/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Tatsukiz/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Tatsukiz/chat-space/deployments","created_at":"2017-05-16T09:36:44Z","updated_at":"2017-05-16T10:08:51Z","pushed_at":"2017-08-03T12:56:55Z","git_url":"git://github.com/Tatsukiz/chat-space.git","ssh_url":"git@github.com:Tatsukiz/chat-space.git","clone_url":"https://github.com/Tatsukiz/chat-space.git","svn_url":"https://github.com/Tatsukiz/chat-space","homepage":null,"size":673,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Tatsukiz:master","ref":"master","sha":"c363b0a82c8911beed318a0ed39d371712adf185","user":{"login":"Tatsukiz","id":26081655,"avatar_url":"https://avatars3.githubusercontent.com/u/26081655?v=4","gravatar_id":"","url":"https://api.github.com/users/Tatsukiz","html_url":"https://github.com/Tatsukiz","followers_url":"https://api.github.com/users/Tatsukiz/followers","following_url":"https://api.github.com/users/Tatsukiz/following{/other_user}","gists_url":"https://api.github.com/users/Tatsukiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatsukiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatsukiz/subscriptions","organizations_url":"https://api.github.com/users/Tatsukiz/orgs","repos_url":"https://api.github.com/users/Tatsukiz/repos","events_url":"https://api.github.com/users/Tatsukiz/events{/privacy}","received_events_url":"https://api.github.com/users/Tatsukiz/received_events","type":"User","site_admin":false},"repo":{"id":91441294,"name":"chat-space","full_name":"Tatsukiz/chat-space","owner":{"login":"Tatsukiz","id":26081655,"avatar_url":"https://avatars3.githubusercontent.com/u/26081655?v=4","gravatar_id":"","url":"https://api.github.com/users/Tatsukiz","html_url":"https://github.com/Tatsukiz","followers_url":"https://api.github.com/users/Tatsukiz/followers","following_url":"https://api.github.com/users/Tatsukiz/following{/other_user}","gists_url":"https://api.github.com/users/Tatsukiz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tatsukiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tatsukiz/subscriptions","organizations_url":"https://api.github.com/users/Tatsukiz/orgs","repos_url":"https://api.github.com/users/Tatsukiz/repos","events_url":"https://api.github.com/users/Tatsukiz/events{/privacy}","received_events_url":"https://api.github.com/users/Tatsukiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tatsukiz/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Tatsukiz/chat-space","forks_url":"https://api.github.com/repos/Tatsukiz/chat-space/forks","keys_url":"https://api.github.com/repos/Tatsukiz/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tatsukiz/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tatsukiz/chat-space/teams","hooks_url":"https://api.github.com/repos/Tatsukiz/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Tatsukiz/chat-space/events","assignees_url":"https://api.github.com/repos/Tatsukiz/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Tatsukiz/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Tatsukiz/chat-space/tags","blobs_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tatsukiz/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Tatsukiz/chat-space/languages","stargazers_url":"https://api.github.com/repos/Tatsukiz/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Tatsukiz/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Tatsukiz/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Tatsukiz/chat-space/subscription","commits_url":"https://api.github.com/repos/Tatsukiz/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tatsukiz/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tatsukiz/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tatsukiz/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Tatsukiz/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tatsukiz/chat-space/merges","archive_url":"https://api.github.com/repos/Tatsukiz/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tatsukiz/chat-space/downloads","issues_url":"https://api.github.com/repos/Tatsukiz/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Tatsukiz/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Tatsukiz/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Tatsukiz/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tatsukiz/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Tatsukiz/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Tatsukiz/chat-space/deployments","created_at":"2017-05-16T09:36:44Z","updated_at":"2017-05-16T10:08:51Z","pushed_at":"2017-08-03T12:56:55Z","git_url":"git://github.com/Tatsukiz/chat-space.git","ssh_url":"git@github.com:Tatsukiz/chat-space.git","clone_url":"https://github.com/Tatsukiz/chat-space.git","svn_url":"https://github.com/Tatsukiz/chat-space","homepage":null,"size":673,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10"},"html":{"href":"https://github.com/Tatsukiz/chat-space/pull/10"},"issue":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/issues/10"},"comments":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Tatsukiz/chat-space/statuses/fcbcf3cd197c913627133ffe0817653bd0a1dfec"}}}}
{"actor":{"display_login":"Tatsukiz"}}