{"action":"created","comment":{"url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/comments/193784694","pull_request_review_id":126828261,"id":193784694,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mzc4NDY5NA==","diff_hunk":"@@ -3,19 +3,18 @@ class Api::V1::ApplicationController < ApplicationController\n   include ActionController::HttpAuthentication::Token::ControllerMethods\n   before_action :authenticate_access_token, except: [:sign_up, :sign_in]\n \n+  FIRST_PAGE = 1\n+  DEFAULT_LIMIT = 10\n+\n   def authenticate_access_token\n     authenticate_or_request_with_http_token do |access_token, options|\n       @authed_user = User.find_by(access_token: access_token)\n       @authed_user != nil ? true : false\n     end\n   end\n \n-  def pagination_params(default_limit=10)\n-    pagination_params = params.permit(:page, :limit)\n-    if !params.key?(:limit)\n-      pagination_params[:limit] = default_limit\n-    end\n-\n-    pagination_params\n+  def pagination\n+    @page = params[:page] || FIRST_PAGE\n+    @limit = params[:limit] || DEFAULT_LIMIT","path":"app/controllers/api/v1/application_controller.rb","position":23,"original_position":23,"commit_id":"52655c5f504e490e179898c39cbb89b95511936c","original_commit_id":"52655c5f504e490e179898c39cbb89b95511936c","user":{"login":"MasanoriOyabu","id":11284152,"node_id":"MDQ6VXNlcjExMjg0MTUy","avatar_url":"https://avatars3.githubusercontent.com/u/11284152?v=4","gravatar_id":"","url":"https://api.github.com/users/MasanoriOyabu","html_url":"https://github.com/MasanoriOyabu","followers_url":"https://api.github.com/users/MasanoriOyabu/followers","following_url":"https://api.github.com/users/MasanoriOyabu/following{/other_user}","gists_url":"https://api.github.com/users/MasanoriOyabu/gists{/gist_id}","starred_url":"https://api.github.com/users/MasanoriOyabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasanoriOyabu/subscriptions","organizations_url":"https://api.github.com/users/MasanoriOyabu/orgs","repos_url":"https://api.github.com/users/MasanoriOyabu/repos","events_url":"https://api.github.com/users/MasanoriOyabu/events{/privacy}","received_events_url":"https://api.github.com/users/MasanoriOyabu/received_events","type":"User","site_admin":false},"body":"railsってこれで動くんだっけ？","created_at":"2018-06-07T15:14:07Z","updated_at":"2018-06-07T15:14:18Z","html_url":"https://github.com/MasanoriOyabu/elaly_web_server/pull/91#discussion_r193784694","pull_request_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/comments/193784694"},"html":{"href":"https://github.com/MasanoriOyabu/elaly_web_server/pull/91#discussion_r193784694"},"pull_request":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91","id":192967315,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyOTY3MzE1","html_url":"https://github.com/MasanoriOyabu/elaly_web_server/pull/91","diff_url":"https://github.com/MasanoriOyabu/elaly_web_server/pull/91.diff","patch_url":"https://github.com/MasanoriOyabu/elaly_web_server/pull/91.patch","issue_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/91","number":91,"state":"open","locked":false,"title":"get_followers_api","user":{"login":"smilenannan","id":19343338,"node_id":"MDQ6VXNlcjE5MzQzMzM4","avatar_url":"https://avatars0.githubusercontent.com/u/19343338?v=4","gravatar_id":"","url":"https://api.github.com/users/smilenannan","html_url":"https://github.com/smilenannan","followers_url":"https://api.github.com/users/smilenannan/followers","following_url":"https://api.github.com/users/smilenannan/following{/other_user}","gists_url":"https://api.github.com/users/smilenannan/gists{/gist_id}","starred_url":"https://api.github.com/users/smilenannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smilenannan/subscriptions","organizations_url":"https://api.github.com/users/smilenannan/orgs","repos_url":"https://api.github.com/users/smilenannan/repos","events_url":"https://api.github.com/users/smilenannan/events{/privacy}","received_events_url":"https://api.github.com/users/smilenannan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-06T10:25:42Z","updated_at":"2018-06-07T15:14:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"261c357527dc82e763650ec77415dcd3fa543d58","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91/commits","review_comments_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91/comments","review_comment_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/91/comments","statuses_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/statuses/52655c5f504e490e179898c39cbb89b95511936c","head":{"label":"MasanoriOyabu:get_followers_api","ref":"get_followers_api","sha":"52655c5f504e490e179898c39cbb89b95511936c","user":{"login":"MasanoriOyabu","id":11284152,"node_id":"MDQ6VXNlcjExMjg0MTUy","avatar_url":"https://avatars3.githubusercontent.com/u/11284152?v=4","gravatar_id":"","url":"https://api.github.com/users/MasanoriOyabu","html_url":"https://github.com/MasanoriOyabu","followers_url":"https://api.github.com/users/MasanoriOyabu/followers","following_url":"https://api.github.com/users/MasanoriOyabu/following{/other_user}","gists_url":"https://api.github.com/users/MasanoriOyabu/gists{/gist_id}","starred_url":"https://api.github.com/users/MasanoriOyabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasanoriOyabu/subscriptions","organizations_url":"https://api.github.com/users/MasanoriOyabu/orgs","repos_url":"https://api.github.com/users/MasanoriOyabu/repos","events_url":"https://api.github.com/users/MasanoriOyabu/events{/privacy}","received_events_url":"https://api.github.com/users/MasanoriOyabu/received_events","type":"User","site_admin":false},"repo":{"id":125496956,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU0OTY5NTY=","name":"elaly_web_server","full_name":"MasanoriOyabu/elaly_web_server","owner":{"login":"MasanoriOyabu","id":11284152,"node_id":"MDQ6VXNlcjExMjg0MTUy","avatar_url":"https://avatars3.githubusercontent.com/u/11284152?v=4","gravatar_id":"","url":"https://api.github.com/users/MasanoriOyabu","html_url":"https://github.com/MasanoriOyabu","followers_url":"https://api.github.com/users/MasanoriOyabu/followers","following_url":"https://api.github.com/users/MasanoriOyabu/following{/other_user}","gists_url":"https://api.github.com/users/MasanoriOyabu/gists{/gist_id}","starred_url":"https://api.github.com/users/MasanoriOyabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasanoriOyabu/subscriptions","organizations_url":"https://api.github.com/users/MasanoriOyabu/orgs","repos_url":"https://api.github.com/users/MasanoriOyabu/repos","events_url":"https://api.github.com/users/MasanoriOyabu/events{/privacy}","received_events_url":"https://api.github.com/users/MasanoriOyabu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MasanoriOyabu/elaly_web_server","description":null,"fork":false,"url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server","forks_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/forks","keys_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/teams","hooks_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/hooks","issue_events_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/events{/number}","events_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/events","assignees_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/assignees{/user}","branches_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/branches{/branch}","tags_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/tags","blobs_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/statuses/{sha}","languages_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/languages","stargazers_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/stargazers","contributors_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/contributors","subscribers_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/subscribers","subscription_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/subscription","commits_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/contents/{+path}","compare_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/merges","archive_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/downloads","issues_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues{/number}","pulls_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls{/number}","milestones_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/milestones{/number}","notifications_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/labels{/name}","releases_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/releases{/id}","deployments_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/deployments","created_at":"2018-03-16T09:50:30Z","updated_at":"2018-06-05T13:48:09Z","pushed_at":"2018-06-07T14:22:48Z","git_url":"git://github.com/MasanoriOyabu/elaly_web_server.git","ssh_url":"git@github.com:MasanoriOyabu/elaly_web_server.git","clone_url":"https://github.com/MasanoriOyabu/elaly_web_server.git","svn_url":"https://github.com/MasanoriOyabu/elaly_web_server","homepage":null,"size":719,"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":34,"license":null,"forks":0,"open_issues":34,"watchers":0,"default_branch":"master"}},"base":{"label":"MasanoriOyabu:master","ref":"master","sha":"802160e90de99c49b86ad84a04929a739daa311c","user":{"login":"MasanoriOyabu","id":11284152,"node_id":"MDQ6VXNlcjExMjg0MTUy","avatar_url":"https://avatars3.githubusercontent.com/u/11284152?v=4","gravatar_id":"","url":"https://api.github.com/users/MasanoriOyabu","html_url":"https://github.com/MasanoriOyabu","followers_url":"https://api.github.com/users/MasanoriOyabu/followers","following_url":"https://api.github.com/users/MasanoriOyabu/following{/other_user}","gists_url":"https://api.github.com/users/MasanoriOyabu/gists{/gist_id}","starred_url":"https://api.github.com/users/MasanoriOyabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasanoriOyabu/subscriptions","organizations_url":"https://api.github.com/users/MasanoriOyabu/orgs","repos_url":"https://api.github.com/users/MasanoriOyabu/repos","events_url":"https://api.github.com/users/MasanoriOyabu/events{/privacy}","received_events_url":"https://api.github.com/users/MasanoriOyabu/received_events","type":"User","site_admin":false},"repo":{"id":125496956,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU0OTY5NTY=","name":"elaly_web_server","full_name":"MasanoriOyabu/elaly_web_server","owner":{"login":"MasanoriOyabu","id":11284152,"node_id":"MDQ6VXNlcjExMjg0MTUy","avatar_url":"https://avatars3.githubusercontent.com/u/11284152?v=4","gravatar_id":"","url":"https://api.github.com/users/MasanoriOyabu","html_url":"https://github.com/MasanoriOyabu","followers_url":"https://api.github.com/users/MasanoriOyabu/followers","following_url":"https://api.github.com/users/MasanoriOyabu/following{/other_user}","gists_url":"https://api.github.com/users/MasanoriOyabu/gists{/gist_id}","starred_url":"https://api.github.com/users/MasanoriOyabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasanoriOyabu/subscriptions","organizations_url":"https://api.github.com/users/MasanoriOyabu/orgs","repos_url":"https://api.github.com/users/MasanoriOyabu/repos","events_url":"https://api.github.com/users/MasanoriOyabu/events{/privacy}","received_events_url":"https://api.github.com/users/MasanoriOyabu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MasanoriOyabu/elaly_web_server","description":null,"fork":false,"url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server","forks_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/forks","keys_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/teams","hooks_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/hooks","issue_events_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/events{/number}","events_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/events","assignees_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/assignees{/user}","branches_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/branches{/branch}","tags_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/tags","blobs_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/statuses/{sha}","languages_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/languages","stargazers_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/stargazers","contributors_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/contributors","subscribers_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/subscribers","subscription_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/subscription","commits_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/contents/{+path}","compare_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/merges","archive_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/downloads","issues_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues{/number}","pulls_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls{/number}","milestones_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/milestones{/number}","notifications_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/labels{/name}","releases_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/releases{/id}","deployments_url":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/deployments","created_at":"2018-03-16T09:50:30Z","updated_at":"2018-06-05T13:48:09Z","pushed_at":"2018-06-07T14:22:48Z","git_url":"git://github.com/MasanoriOyabu/elaly_web_server.git","ssh_url":"git@github.com:MasanoriOyabu/elaly_web_server.git","clone_url":"https://github.com/MasanoriOyabu/elaly_web_server.git","svn_url":"https://github.com/MasanoriOyabu/elaly_web_server","homepage":null,"size":719,"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":34,"license":null,"forks":0,"open_issues":34,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91"},"html":{"href":"https://github.com/MasanoriOyabu/elaly_web_server/pull/91"},"issue":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/91"},"comments":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/MasanoriOyabu/elaly_web_server/statuses/52655c5f504e490e179898c39cbb89b95511936c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"MasanoriOyabu"}}