{"action":"created","comment":{"url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/comments/31012976","id":31012976,"diff_hunk":"@@ -1,3 +1,32 @@\n class Admin::OrdersController < ApplicationController\n+  before_action :set_order, only: [:edit, :update, :destroy]\n   layout 'admin'\n+\n+  helper_method :for_oredr\n+\n+  def index\n+    @orders = Order.order(status: :desc, created_at: :desc).page(params[:page]).per(5)","path":"app/controllers/admin/orders_controller.rb","position":8,"original_position":8,"commit_id":"db7281c6c92073b1f426d78b749126dbdb91f338","original_commit_id":"db7281c6c92073b1f426d78b749126dbdb91f338","user":{"login":"kokosko","id":11603852,"avatar_url":"https://avatars.githubusercontent.com/u/11603852?v=3","gravatar_id":"","url":"https://api.github.com/users/kokosko","html_url":"https://github.com/kokosko","followers_url":"https://api.github.com/users/kokosko/followers","following_url":"https://api.github.com/users/kokosko/following{/other_user}","gists_url":"https://api.github.com/users/kokosko/gists{/gist_id}","starred_url":"https://api.github.com/users/kokosko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokosko/subscriptions","organizations_url":"https://api.github.com/users/kokosko/orgs","repos_url":"https://api.github.com/users/kokosko/repos","events_url":"https://api.github.com/users/kokosko/events{/privacy}","received_events_url":"https://api.github.com/users/kokosko/received_events","type":"User","site_admin":false},"body":"fix","created_at":"2015-05-26T08:22:36Z","updated_at":"2015-05-26T08:22:36Z","html_url":"https://github.com/toysshopdevelop/toysshop/pull/48#discussion_r31012976","pull_request_url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/comments/31012976"},"html":{"href":"https://github.com/toysshopdevelop/toysshop/pull/48#discussion_r31012976"},"pull_request":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48","id":36144648,"html_url":"https://github.com/toysshopdevelop/toysshop/pull/48","diff_url":"https://github.com/toysshopdevelop/toysshop/pull/48.diff","patch_url":"https://github.com/toysshopdevelop/toysshop/pull/48.patch","issue_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/48","number":48,"state":"open","locked":false,"title":"add orders for admin","user":{"login":"kokosko","id":11603852,"avatar_url":"https://avatars.githubusercontent.com/u/11603852?v=3","gravatar_id":"","url":"https://api.github.com/users/kokosko","html_url":"https://github.com/kokosko","followers_url":"https://api.github.com/users/kokosko/followers","following_url":"https://api.github.com/users/kokosko/following{/other_user}","gists_url":"https://api.github.com/users/kokosko/gists{/gist_id}","starred_url":"https://api.github.com/users/kokosko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokosko/subscriptions","organizations_url":"https://api.github.com/users/kokosko/orgs","repos_url":"https://api.github.com/users/kokosko/repos","events_url":"https://api.github.com/users/kokosko/events{/privacy}","received_events_url":"https://api.github.com/users/kokosko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-25T15:04:08Z","updated_at":"2015-05-26T08:22:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"974fc62e733cd63d4eff366653f4edc67256e26a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48/commits","review_comments_url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48/comments","review_comment_url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/48/comments","statuses_url":"https://api.github.com/repos/toysshopdevelop/toysshop/statuses/db7281c6c92073b1f426d78b749126dbdb91f338","head":{"label":"toysshopdevelop:admin_orders","ref":"admin_orders","sha":"db7281c6c92073b1f426d78b749126dbdb91f338","user":{"login":"toysshopdevelop","id":12134958,"avatar_url":"https://avatars.githubusercontent.com/u/12134958?v=3","gravatar_id":"","url":"https://api.github.com/users/toysshopdevelop","html_url":"https://github.com/toysshopdevelop","followers_url":"https://api.github.com/users/toysshopdevelop/followers","following_url":"https://api.github.com/users/toysshopdevelop/following{/other_user}","gists_url":"https://api.github.com/users/toysshopdevelop/gists{/gist_id}","starred_url":"https://api.github.com/users/toysshopdevelop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toysshopdevelop/subscriptions","organizations_url":"https://api.github.com/users/toysshopdevelop/orgs","repos_url":"https://api.github.com/users/toysshopdevelop/repos","events_url":"https://api.github.com/users/toysshopdevelop/events{/privacy}","received_events_url":"https://api.github.com/users/toysshopdevelop/received_events","type":"User","site_admin":false},"repo":{"id":34660335,"name":"toysshop","full_name":"toysshopdevelop/toysshop","owner":{"login":"toysshopdevelop","id":12134958,"avatar_url":"https://avatars.githubusercontent.com/u/12134958?v=3","gravatar_id":"","url":"https://api.github.com/users/toysshopdevelop","html_url":"https://github.com/toysshopdevelop","followers_url":"https://api.github.com/users/toysshopdevelop/followers","following_url":"https://api.github.com/users/toysshopdevelop/following{/other_user}","gists_url":"https://api.github.com/users/toysshopdevelop/gists{/gist_id}","starred_url":"https://api.github.com/users/toysshopdevelop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toysshopdevelop/subscriptions","organizations_url":"https://api.github.com/users/toysshopdevelop/orgs","repos_url":"https://api.github.com/users/toysshopdevelop/repos","events_url":"https://api.github.com/users/toysshopdevelop/events{/privacy}","received_events_url":"https://api.github.com/users/toysshopdevelop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toysshopdevelop/toysshop","description":"","fork":false,"url":"https://api.github.com/repos/toysshopdevelop/toysshop","forks_url":"https://api.github.com/repos/toysshopdevelop/toysshop/forks","keys_url":"https://api.github.com/repos/toysshopdevelop/toysshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toysshopdevelop/toysshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toysshopdevelop/toysshop/teams","hooks_url":"https://api.github.com/repos/toysshopdevelop/toysshop/hooks","issue_events_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/events{/number}","events_url":"https://api.github.com/repos/toysshopdevelop/toysshop/events","assignees_url":"https://api.github.com/repos/toysshopdevelop/toysshop/assignees{/user}","branches_url":"https://api.github.com/repos/toysshopdevelop/toysshop/branches{/branch}","tags_url":"https://api.github.com/repos/toysshopdevelop/toysshop/tags","blobs_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toysshopdevelop/toysshop/statuses/{sha}","languages_url":"https://api.github.com/repos/toysshopdevelop/toysshop/languages","stargazers_url":"https://api.github.com/repos/toysshopdevelop/toysshop/stargazers","contributors_url":"https://api.github.com/repos/toysshopdevelop/toysshop/contributors","subscribers_url":"https://api.github.com/repos/toysshopdevelop/toysshop/subscribers","subscription_url":"https://api.github.com/repos/toysshopdevelop/toysshop/subscription","commits_url":"https://api.github.com/repos/toysshopdevelop/toysshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/toysshopdevelop/toysshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/toysshopdevelop/toysshop/contents/{+path}","compare_url":"https://api.github.com/repos/toysshopdevelop/toysshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toysshopdevelop/toysshop/merges","archive_url":"https://api.github.com/repos/toysshopdevelop/toysshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toysshopdevelop/toysshop/downloads","issues_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues{/number}","pulls_url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls{/number}","milestones_url":"https://api.github.com/repos/toysshopdevelop/toysshop/milestones{/number}","notifications_url":"https://api.github.com/repos/toysshopdevelop/toysshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toysshopdevelop/toysshop/labels{/name}","releases_url":"https://api.github.com/repos/toysshopdevelop/toysshop/releases{/id}","created_at":"2015-04-27T10:28:37Z","updated_at":"2015-05-08T11:47:33Z","pushed_at":"2015-05-25T15:04:09Z","git_url":"git://github.com/toysshopdevelop/toysshop.git","ssh_url":"git@github.com:toysshopdevelop/toysshop.git","clone_url":"https://github.com/toysshopdevelop/toysshop.git","svn_url":"https://github.com/toysshopdevelop/toysshop","homepage":null,"size":544,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"toysshopdevelop:master","ref":"master","sha":"98c94c2604600b87bddb85d542d4f2fa64ab4c9b","user":{"login":"toysshopdevelop","id":12134958,"avatar_url":"https://avatars.githubusercontent.com/u/12134958?v=3","gravatar_id":"","url":"https://api.github.com/users/toysshopdevelop","html_url":"https://github.com/toysshopdevelop","followers_url":"https://api.github.com/users/toysshopdevelop/followers","following_url":"https://api.github.com/users/toysshopdevelop/following{/other_user}","gists_url":"https://api.github.com/users/toysshopdevelop/gists{/gist_id}","starred_url":"https://api.github.com/users/toysshopdevelop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toysshopdevelop/subscriptions","organizations_url":"https://api.github.com/users/toysshopdevelop/orgs","repos_url":"https://api.github.com/users/toysshopdevelop/repos","events_url":"https://api.github.com/users/toysshopdevelop/events{/privacy}","received_events_url":"https://api.github.com/users/toysshopdevelop/received_events","type":"User","site_admin":false},"repo":{"id":34660335,"name":"toysshop","full_name":"toysshopdevelop/toysshop","owner":{"login":"toysshopdevelop","id":12134958,"avatar_url":"https://avatars.githubusercontent.com/u/12134958?v=3","gravatar_id":"","url":"https://api.github.com/users/toysshopdevelop","html_url":"https://github.com/toysshopdevelop","followers_url":"https://api.github.com/users/toysshopdevelop/followers","following_url":"https://api.github.com/users/toysshopdevelop/following{/other_user}","gists_url":"https://api.github.com/users/toysshopdevelop/gists{/gist_id}","starred_url":"https://api.github.com/users/toysshopdevelop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toysshopdevelop/subscriptions","organizations_url":"https://api.github.com/users/toysshopdevelop/orgs","repos_url":"https://api.github.com/users/toysshopdevelop/repos","events_url":"https://api.github.com/users/toysshopdevelop/events{/privacy}","received_events_url":"https://api.github.com/users/toysshopdevelop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toysshopdevelop/toysshop","description":"","fork":false,"url":"https://api.github.com/repos/toysshopdevelop/toysshop","forks_url":"https://api.github.com/repos/toysshopdevelop/toysshop/forks","keys_url":"https://api.github.com/repos/toysshopdevelop/toysshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toysshopdevelop/toysshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toysshopdevelop/toysshop/teams","hooks_url":"https://api.github.com/repos/toysshopdevelop/toysshop/hooks","issue_events_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/events{/number}","events_url":"https://api.github.com/repos/toysshopdevelop/toysshop/events","assignees_url":"https://api.github.com/repos/toysshopdevelop/toysshop/assignees{/user}","branches_url":"https://api.github.com/repos/toysshopdevelop/toysshop/branches{/branch}","tags_url":"https://api.github.com/repos/toysshopdevelop/toysshop/tags","blobs_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toysshopdevelop/toysshop/statuses/{sha}","languages_url":"https://api.github.com/repos/toysshopdevelop/toysshop/languages","stargazers_url":"https://api.github.com/repos/toysshopdevelop/toysshop/stargazers","contributors_url":"https://api.github.com/repos/toysshopdevelop/toysshop/contributors","subscribers_url":"https://api.github.com/repos/toysshopdevelop/toysshop/subscribers","subscription_url":"https://api.github.com/repos/toysshopdevelop/toysshop/subscription","commits_url":"https://api.github.com/repos/toysshopdevelop/toysshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/toysshopdevelop/toysshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/toysshopdevelop/toysshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/toysshopdevelop/toysshop/contents/{+path}","compare_url":"https://api.github.com/repos/toysshopdevelop/toysshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toysshopdevelop/toysshop/merges","archive_url":"https://api.github.com/repos/toysshopdevelop/toysshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toysshopdevelop/toysshop/downloads","issues_url":"https://api.github.com/repos/toysshopdevelop/toysshop/issues{/number}","pulls_url":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls{/number}","milestones_url":"https://api.github.com/repos/toysshopdevelop/toysshop/milestones{/number}","notifications_url":"https://api.github.com/repos/toysshopdevelop/toysshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toysshopdevelop/toysshop/labels{/name}","releases_url":"https://api.github.com/repos/toysshopdevelop/toysshop/releases{/id}","created_at":"2015-04-27T10:28:37Z","updated_at":"2015-05-08T11:47:33Z","pushed_at":"2015-05-25T15:04:09Z","git_url":"git://github.com/toysshopdevelop/toysshop.git","ssh_url":"git@github.com:toysshopdevelop/toysshop.git","clone_url":"https://github.com/toysshopdevelop/toysshop.git","svn_url":"https://github.com/toysshopdevelop/toysshop","homepage":null,"size":544,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48"},"html":{"href":"https://github.com/toysshopdevelop/toysshop/pull/48"},"issue":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/48"},"comments":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/toysshopdevelop/toysshop/statuses/db7281c6c92073b1f426d78b749126dbdb91f338"}}}}