{"action":"created","comment":{"url":"https://api.github.com/repos/Terunaga/protospace/pulls/comments/46760334","id":46760334,"diff_hunk":"@@ -3,11 +3,11 @@ class PrototypesController < ApplicationController\n   before_action :set_prototype, only: [:edit, :update, :destroy]\n \n   def index\n-    @prototypes = Prototype.includes(:thumbnails).order('likes_count DESC')\n+    @prototypes = Prototype.includes(:thumbnails).order('likes_count DESC').page(params[:page]).per(4)","path":"app/controllers/prototypes_controller.rb","position":5,"original_position":5,"commit_id":"f20e4125b03c23ae74c2dd977df6457137050442","original_commit_id":"f20e4125b03c23ae74c2dd977df6457137050442","user":{"login":"sinagaki58","id":11718183,"avatar_url":"https://avatars.githubusercontent.com/u/11718183?v=3","gravatar_id":"","url":"https://api.github.com/users/sinagaki58","html_url":"https://github.com/sinagaki58","followers_url":"https://api.github.com/users/sinagaki58/followers","following_url":"https://api.github.com/users/sinagaki58/following{/other_user}","gists_url":"https://api.github.com/users/sinagaki58/gists{/gist_id}","starred_url":"https://api.github.com/users/sinagaki58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinagaki58/subscriptions","organizations_url":"https://api.github.com/users/sinagaki58/orgs","repos_url":"https://api.github.com/users/sinagaki58/repos","events_url":"https://api.github.com/users/sinagaki58/events{/privacy}","received_events_url":"https://api.github.com/users/sinagaki58/received_events","type":"User","site_admin":false},"body":"`per(4)`これモデルにかけます","created_at":"2015-12-05T16:56:01Z","updated_at":"2015-12-05T16:56:01Z","html_url":"https://github.com/Terunaga/protospace/pull/17#discussion_r46760334","pull_request_url":"https://api.github.com/repos/Terunaga/protospace/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/comments/46760334"},"html":{"href":"https://github.com/Terunaga/protospace/pull/17#discussion_r46760334"},"pull_request":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Terunaga/protospace/pulls/17","id":52758691,"html_url":"https://github.com/Terunaga/protospace/pull/17","diff_url":"https://github.com/Terunaga/protospace/pull/17.diff","patch_url":"https://github.com/Terunaga/protospace/pull/17.patch","issue_url":"https://api.github.com/repos/Terunaga/protospace/issues/17","number":17,"state":"open","locked":false,"title":"Improve design branch","user":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nImproving the designs.\r\n\r\n# WHY\r\nTo raise the level of user interface.","created_at":"2015-12-05T16:51:43Z","updated_at":"2015-12-05T16:56:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fad75524ef40e45934a8c8ff413656ceaabde4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Terunaga/protospace/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Terunaga/protospace/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Terunaga/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Terunaga/protospace/issues/17/comments","statuses_url":"https://api.github.com/repos/Terunaga/protospace/statuses/f20e4125b03c23ae74c2dd977df6457137050442","head":{"label":"Terunaga:improve_design_branch","ref":"improve_design_branch","sha":"f20e4125b03c23ae74c2dd977df6457137050442","user":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"repo":{"id":44677169,"name":"protospace","full_name":"Terunaga/protospace","owner":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Terunaga/protospace","description":"","fork":false,"url":"https://api.github.com/repos/Terunaga/protospace","forks_url":"https://api.github.com/repos/Terunaga/protospace/forks","keys_url":"https://api.github.com/repos/Terunaga/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Terunaga/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Terunaga/protospace/teams","hooks_url":"https://api.github.com/repos/Terunaga/protospace/hooks","issue_events_url":"https://api.github.com/repos/Terunaga/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/Terunaga/protospace/events","assignees_url":"https://api.github.com/repos/Terunaga/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/Terunaga/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/Terunaga/protospace/tags","blobs_url":"https://api.github.com/repos/Terunaga/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Terunaga/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Terunaga/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/Terunaga/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Terunaga/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/Terunaga/protospace/languages","stargazers_url":"https://api.github.com/repos/Terunaga/protospace/stargazers","contributors_url":"https://api.github.com/repos/Terunaga/protospace/contributors","subscribers_url":"https://api.github.com/repos/Terunaga/protospace/subscribers","subscription_url":"https://api.github.com/repos/Terunaga/protospace/subscription","commits_url":"https://api.github.com/repos/Terunaga/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/Terunaga/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/Terunaga/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/Terunaga/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/Terunaga/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/Terunaga/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Terunaga/protospace/merges","archive_url":"https://api.github.com/repos/Terunaga/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Terunaga/protospace/downloads","issues_url":"https://api.github.com/repos/Terunaga/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/Terunaga/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/Terunaga/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/Terunaga/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Terunaga/protospace/labels{/name}","releases_url":"https://api.github.com/repos/Terunaga/protospace/releases{/id}","created_at":"2015-10-21T13:12:39Z","updated_at":"2015-10-31T16:05:59Z","pushed_at":"2015-12-05T16:51:44Z","git_url":"git://github.com/Terunaga/protospace.git","ssh_url":"git@github.com:Terunaga/protospace.git","clone_url":"https://github.com/Terunaga/protospace.git","svn_url":"https://github.com/Terunaga/protospace","homepage":"","size":2649,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Terunaga:master","ref":"master","sha":"d9b9af5bd55c1e0d5d0143377b885db2bb9f50ab","user":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"repo":{"id":44677169,"name":"protospace","full_name":"Terunaga/protospace","owner":{"login":"Terunaga","id":13899346,"avatar_url":"https://avatars.githubusercontent.com/u/13899346?v=3","gravatar_id":"","url":"https://api.github.com/users/Terunaga","html_url":"https://github.com/Terunaga","followers_url":"https://api.github.com/users/Terunaga/followers","following_url":"https://api.github.com/users/Terunaga/following{/other_user}","gists_url":"https://api.github.com/users/Terunaga/gists{/gist_id}","starred_url":"https://api.github.com/users/Terunaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terunaga/subscriptions","organizations_url":"https://api.github.com/users/Terunaga/orgs","repos_url":"https://api.github.com/users/Terunaga/repos","events_url":"https://api.github.com/users/Terunaga/events{/privacy}","received_events_url":"https://api.github.com/users/Terunaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Terunaga/protospace","description":"","fork":false,"url":"https://api.github.com/repos/Terunaga/protospace","forks_url":"https://api.github.com/repos/Terunaga/protospace/forks","keys_url":"https://api.github.com/repos/Terunaga/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Terunaga/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Terunaga/protospace/teams","hooks_url":"https://api.github.com/repos/Terunaga/protospace/hooks","issue_events_url":"https://api.github.com/repos/Terunaga/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/Terunaga/protospace/events","assignees_url":"https://api.github.com/repos/Terunaga/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/Terunaga/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/Terunaga/protospace/tags","blobs_url":"https://api.github.com/repos/Terunaga/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Terunaga/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Terunaga/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/Terunaga/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Terunaga/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/Terunaga/protospace/languages","stargazers_url":"https://api.github.com/repos/Terunaga/protospace/stargazers","contributors_url":"https://api.github.com/repos/Terunaga/protospace/contributors","subscribers_url":"https://api.github.com/repos/Terunaga/protospace/subscribers","subscription_url":"https://api.github.com/repos/Terunaga/protospace/subscription","commits_url":"https://api.github.com/repos/Terunaga/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/Terunaga/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/Terunaga/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/Terunaga/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/Terunaga/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/Terunaga/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Terunaga/protospace/merges","archive_url":"https://api.github.com/repos/Terunaga/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Terunaga/protospace/downloads","issues_url":"https://api.github.com/repos/Terunaga/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/Terunaga/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/Terunaga/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/Terunaga/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Terunaga/protospace/labels{/name}","releases_url":"https://api.github.com/repos/Terunaga/protospace/releases{/id}","created_at":"2015-10-21T13:12:39Z","updated_at":"2015-10-31T16:05:59Z","pushed_at":"2015-12-05T16:51:44Z","git_url":"git://github.com/Terunaga/protospace.git","ssh_url":"git@github.com:Terunaga/protospace.git","clone_url":"https://github.com/Terunaga/protospace.git","svn_url":"https://github.com/Terunaga/protospace","homepage":"","size":2649,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/17"},"html":{"href":"https://github.com/Terunaga/protospace/pull/17"},"issue":{"href":"https://api.github.com/repos/Terunaga/protospace/issues/17"},"comments":{"href":"https://api.github.com/repos/Terunaga/protospace/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Terunaga/protospace/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Terunaga/protospace/statuses/f20e4125b03c23ae74c2dd977df6457137050442"}}}}