{"action":"created","comment":{"url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/comments/70379280","id":70379280,"diff_hunk":"@@ -0,0 +1,14 @@\n+class Api::ApplicationController < ActionController::Base\n+  protect_from_forgery with: :null_session\n+  include SessionsHelper\n+\n+  private\n+\n+    # Confirms a logged-in user\n+    def logged_in_user\n+      unless logged_in?\n+        store_location","path":"app/controllers/api/application_controller.rb","position":10,"original_position":10,"commit_id":"b7bfcf5c4c5610e2cffb824416f338dc5ba01a71","original_commit_id":"b7bfcf5c4c5610e2cffb824416f338dc5ba01a71","user":{"login":"Joe-noh","id":2364702,"avatar_url":"https://avatars.githubusercontent.com/u/2364702?v=3","gravatar_id":"","url":"https://api.github.com/users/Joe-noh","html_url":"https://github.com/Joe-noh","followers_url":"https://api.github.com/users/Joe-noh/followers","following_url":"https://api.github.com/users/Joe-noh/following{/other_user}","gists_url":"https://api.github.com/users/Joe-noh/gists{/gist_id}","starred_url":"https://api.github.com/users/Joe-noh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joe-noh/subscriptions","organizations_url":"https://api.github.com/users/Joe-noh/orgs","repos_url":"https://api.github.com/users/Joe-noh/repos","events_url":"https://api.github.com/users/Joe-noh/events{/privacy}","received_events_url":"https://api.github.com/users/Joe-noh/received_events","type":"User","site_admin":false},"body":"セッションを使うのは、2行目の`protect_from_forgery with: :null_session`と矛盾しているように見える。認証部分を実装してから書きなおすつもりだったらゴメン。","created_at":"2016-07-12T05:36:02Z","updated_at":"2016-07-12T05:36:02Z","html_url":"https://github.com/Asuforce/rails_tutorial/pull/46#discussion_r70379280","pull_request_url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/comments/70379280"},"html":{"href":"https://github.com/Asuforce/rails_tutorial/pull/46#discussion_r70379280"},"pull_request":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46","id":76397946,"html_url":"https://github.com/Asuforce/rails_tutorial/pull/46","diff_url":"https://github.com/Asuforce/rails_tutorial/pull/46.diff","patch_url":"https://github.com/Asuforce/rails_tutorial/pull/46.patch","issue_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/46","number":46,"state":"open","locked":false,"title":"User apiを作成","user":{"login":"Asuforce","id":9331040,"avatar_url":"https://avatars.githubusercontent.com/u/9331040?v=3","gravatar_id":"","url":"https://api.github.com/users/Asuforce","html_url":"https://github.com/Asuforce","followers_url":"https://api.github.com/users/Asuforce/followers","following_url":"https://api.github.com/users/Asuforce/following{/other_user}","gists_url":"https://api.github.com/users/Asuforce/gists{/gist_id}","starred_url":"https://api.github.com/users/Asuforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asuforce/subscriptions","organizations_url":"https://api.github.com/users/Asuforce/orgs","repos_url":"https://api.github.com/users/Asuforce/repos","events_url":"https://api.github.com/users/Asuforce/events{/privacy}","received_events_url":"https://api.github.com/users/Asuforce/received_events","type":"User","site_admin":false},"body":"## 概要\r\n\r\nUsers周りのapiを作っていく","created_at":"2016-07-06T08:51:16Z","updated_at":"2016-07-12T05:36:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43f363e57da5cb6b93d46f2e20d0d7c0408b8c60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46/commits","review_comments_url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46/comments","review_comment_url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/46/comments","statuses_url":"https://api.github.com/repos/Asuforce/rails_tutorial/statuses/b7bfcf5c4c5610e2cffb824416f338dc5ba01a71","head":{"label":"Asuforce:json-users","ref":"json-users","sha":"b7bfcf5c4c5610e2cffb824416f338dc5ba01a71","user":{"login":"Asuforce","id":9331040,"avatar_url":"https://avatars.githubusercontent.com/u/9331040?v=3","gravatar_id":"","url":"https://api.github.com/users/Asuforce","html_url":"https://github.com/Asuforce","followers_url":"https://api.github.com/users/Asuforce/followers","following_url":"https://api.github.com/users/Asuforce/following{/other_user}","gists_url":"https://api.github.com/users/Asuforce/gists{/gist_id}","starred_url":"https://api.github.com/users/Asuforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asuforce/subscriptions","organizations_url":"https://api.github.com/users/Asuforce/orgs","repos_url":"https://api.github.com/users/Asuforce/repos","events_url":"https://api.github.com/users/Asuforce/events{/privacy}","received_events_url":"https://api.github.com/users/Asuforce/received_events","type":"User","site_admin":false},"repo":{"id":61018333,"name":"rails_tutorial","full_name":"Asuforce/rails_tutorial","owner":{"login":"Asuforce","id":9331040,"avatar_url":"https://avatars.githubusercontent.com/u/9331040?v=3","gravatar_id":"","url":"https://api.github.com/users/Asuforce","html_url":"https://github.com/Asuforce","followers_url":"https://api.github.com/users/Asuforce/followers","following_url":"https://api.github.com/users/Asuforce/following{/other_user}","gists_url":"https://api.github.com/users/Asuforce/gists{/gist_id}","starred_url":"https://api.github.com/users/Asuforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asuforce/subscriptions","organizations_url":"https://api.github.com/users/Asuforce/orgs","repos_url":"https://api.github.com/users/Asuforce/repos","events_url":"https://api.github.com/users/Asuforce/events{/privacy}","received_events_url":"https://api.github.com/users/Asuforce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Asuforce/rails_tutorial","description":"PPB Traning","fork":false,"url":"https://api.github.com/repos/Asuforce/rails_tutorial","forks_url":"https://api.github.com/repos/Asuforce/rails_tutorial/forks","keys_url":"https://api.github.com/repos/Asuforce/rails_tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Asuforce/rails_tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Asuforce/rails_tutorial/teams","hooks_url":"https://api.github.com/repos/Asuforce/rails_tutorial/hooks","issue_events_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/Asuforce/rails_tutorial/events","assignees_url":"https://api.github.com/repos/Asuforce/rails_tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/Asuforce/rails_tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/Asuforce/rails_tutorial/tags","blobs_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Asuforce/rails_tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/Asuforce/rails_tutorial/languages","stargazers_url":"https://api.github.com/repos/Asuforce/rails_tutorial/stargazers","contributors_url":"https://api.github.com/repos/Asuforce/rails_tutorial/contributors","subscribers_url":"https://api.github.com/repos/Asuforce/rails_tutorial/subscribers","subscription_url":"https://api.github.com/repos/Asuforce/rails_tutorial/subscription","commits_url":"https://api.github.com/repos/Asuforce/rails_tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/Asuforce/rails_tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/Asuforce/rails_tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/Asuforce/rails_tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Asuforce/rails_tutorial/merges","archive_url":"https://api.github.com/repos/Asuforce/rails_tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Asuforce/rails_tutorial/downloads","issues_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/Asuforce/rails_tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/Asuforce/rails_tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Asuforce/rails_tutorial/labels{/name}","releases_url":"https://api.github.com/repos/Asuforce/rails_tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/Asuforce/rails_tutorial/deployments","created_at":"2016-06-13T08:00:08Z","updated_at":"2016-06-14T08:45:00Z","pushed_at":"2016-07-12T05:26:29Z","git_url":"git://github.com/Asuforce/rails_tutorial.git","ssh_url":"git@github.com:Asuforce/rails_tutorial.git","clone_url":"https://github.com/Asuforce/rails_tutorial.git","svn_url":"https://github.com/Asuforce/rails_tutorial","homepage":null,"size":213,"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":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"Asuforce:master","ref":"master","sha":"a093e067d2b8194668494856df4f1df0a91c2e68","user":{"login":"Asuforce","id":9331040,"avatar_url":"https://avatars.githubusercontent.com/u/9331040?v=3","gravatar_id":"","url":"https://api.github.com/users/Asuforce","html_url":"https://github.com/Asuforce","followers_url":"https://api.github.com/users/Asuforce/followers","following_url":"https://api.github.com/users/Asuforce/following{/other_user}","gists_url":"https://api.github.com/users/Asuforce/gists{/gist_id}","starred_url":"https://api.github.com/users/Asuforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asuforce/subscriptions","organizations_url":"https://api.github.com/users/Asuforce/orgs","repos_url":"https://api.github.com/users/Asuforce/repos","events_url":"https://api.github.com/users/Asuforce/events{/privacy}","received_events_url":"https://api.github.com/users/Asuforce/received_events","type":"User","site_admin":false},"repo":{"id":61018333,"name":"rails_tutorial","full_name":"Asuforce/rails_tutorial","owner":{"login":"Asuforce","id":9331040,"avatar_url":"https://avatars.githubusercontent.com/u/9331040?v=3","gravatar_id":"","url":"https://api.github.com/users/Asuforce","html_url":"https://github.com/Asuforce","followers_url":"https://api.github.com/users/Asuforce/followers","following_url":"https://api.github.com/users/Asuforce/following{/other_user}","gists_url":"https://api.github.com/users/Asuforce/gists{/gist_id}","starred_url":"https://api.github.com/users/Asuforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asuforce/subscriptions","organizations_url":"https://api.github.com/users/Asuforce/orgs","repos_url":"https://api.github.com/users/Asuforce/repos","events_url":"https://api.github.com/users/Asuforce/events{/privacy}","received_events_url":"https://api.github.com/users/Asuforce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Asuforce/rails_tutorial","description":"PPB Traning","fork":false,"url":"https://api.github.com/repos/Asuforce/rails_tutorial","forks_url":"https://api.github.com/repos/Asuforce/rails_tutorial/forks","keys_url":"https://api.github.com/repos/Asuforce/rails_tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Asuforce/rails_tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Asuforce/rails_tutorial/teams","hooks_url":"https://api.github.com/repos/Asuforce/rails_tutorial/hooks","issue_events_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/Asuforce/rails_tutorial/events","assignees_url":"https://api.github.com/repos/Asuforce/rails_tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/Asuforce/rails_tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/Asuforce/rails_tutorial/tags","blobs_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Asuforce/rails_tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/Asuforce/rails_tutorial/languages","stargazers_url":"https://api.github.com/repos/Asuforce/rails_tutorial/stargazers","contributors_url":"https://api.github.com/repos/Asuforce/rails_tutorial/contributors","subscribers_url":"https://api.github.com/repos/Asuforce/rails_tutorial/subscribers","subscription_url":"https://api.github.com/repos/Asuforce/rails_tutorial/subscription","commits_url":"https://api.github.com/repos/Asuforce/rails_tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/Asuforce/rails_tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/Asuforce/rails_tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/Asuforce/rails_tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/Asuforce/rails_tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Asuforce/rails_tutorial/merges","archive_url":"https://api.github.com/repos/Asuforce/rails_tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Asuforce/rails_tutorial/downloads","issues_url":"https://api.github.com/repos/Asuforce/rails_tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/Asuforce/rails_tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/Asuforce/rails_tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Asuforce/rails_tutorial/labels{/name}","releases_url":"https://api.github.com/repos/Asuforce/rails_tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/Asuforce/rails_tutorial/deployments","created_at":"2016-06-13T08:00:08Z","updated_at":"2016-06-14T08:45:00Z","pushed_at":"2016-07-12T05:26:29Z","git_url":"git://github.com/Asuforce/rails_tutorial.git","ssh_url":"git@github.com:Asuforce/rails_tutorial.git","clone_url":"https://github.com/Asuforce/rails_tutorial.git","svn_url":"https://github.com/Asuforce/rails_tutorial","homepage":null,"size":213,"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":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46"},"html":{"href":"https://github.com/Asuforce/rails_tutorial/pull/46"},"issue":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/46"},"comments":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/Asuforce/rails_tutorial/statuses/b7bfcf5c4c5610e2cffb824416f338dc5ba01a71"}}}}
{"actor":{"display_login":"Joe-noh"}}