{"action":"created","comment":{"url":"https://api.github.com/repos/JaredRoth/little_shop/pulls/comments/60640149","id":60640149,"diff_hunk":"@@ -0,0 +1,14 @@\n+class OrdersController < ApplicationController\n+\n+  def create\n+    @cart.contents.each do |item_id, quantity|\n+      current_user.orders.create(item_id: item_id, quantity: quantity)\n+    end\n+    redirect_to orders_path\n+  end\n+\n+  def index\n+    @orders = Order.all\n+  end\n+","path":"app/controllers/orders_controller.rb","position":13,"original_position":13,"commit_id":"c35a175986208a770d273e71d3f9663496ef2e98","original_commit_id":"c35a175986208a770d273e71d3f9663496ef2e98","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at class body end.","created_at":"2016-04-21T19:20:45Z","updated_at":"2016-04-21T19:20:45Z","html_url":"https://github.com/JaredRoth/little_shop/pull/30#discussion_r60640149","pull_request_url":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/JaredRoth/little_shop/pulls/comments/60640149"},"html":{"href":"https://github.com/JaredRoth/little_shop/pull/30#discussion_r60640149"},"pull_request":{"href":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30","id":67407740,"html_url":"https://github.com/JaredRoth/little_shop/pull/30","diff_url":"https://github.com/JaredRoth/little_shop/pull/30.diff","patch_url":"https://github.com/JaredRoth/little_shop/pull/30.patch","issue_url":"https://api.github.com/repos/JaredRoth/little_shop/issues/30","number":30,"state":"open","locked":false,"title":"Add sidebar displaying categories","user":{"login":"jwashke","id":14855129,"avatar_url":"https://avatars.githubusercontent.com/u/14855129?v=3","gravatar_id":"","url":"https://api.github.com/users/jwashke","html_url":"https://github.com/jwashke","followers_url":"https://api.github.com/users/jwashke/followers","following_url":"https://api.github.com/users/jwashke/following{/other_user}","gists_url":"https://api.github.com/users/jwashke/gists{/gist_id}","starred_url":"https://api.github.com/users/jwashke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwashke/subscriptions","organizations_url":"https://api.github.com/users/jwashke/orgs","repos_url":"https://api.github.com/users/jwashke/repos","events_url":"https://api.github.com/users/jwashke/events{/privacy}","received_events_url":"https://api.github.com/users/jwashke/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-21T19:20:38Z","updated_at":"2016-04-21T19:20:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30/commits","review_comments_url":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30/comments","review_comment_url":"https://api.github.com/repos/JaredRoth/little_shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JaredRoth/little_shop/issues/30/comments","statuses_url":"https://api.github.com/repos/JaredRoth/little_shop/statuses/c35a175986208a770d273e71d3f9663496ef2e98","head":{"label":"JaredRoth:master","ref":"master","sha":"c35a175986208a770d273e71d3f9663496ef2e98","user":{"login":"JaredRoth","id":11217220,"avatar_url":"https://avatars.githubusercontent.com/u/11217220?v=3","gravatar_id":"","url":"https://api.github.com/users/JaredRoth","html_url":"https://github.com/JaredRoth","followers_url":"https://api.github.com/users/JaredRoth/followers","following_url":"https://api.github.com/users/JaredRoth/following{/other_user}","gists_url":"https://api.github.com/users/JaredRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/JaredRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaredRoth/subscriptions","organizations_url":"https://api.github.com/users/JaredRoth/orgs","repos_url":"https://api.github.com/users/JaredRoth/repos","events_url":"https://api.github.com/users/JaredRoth/events{/privacy}","received_events_url":"https://api.github.com/users/JaredRoth/received_events","type":"User","site_admin":false},"repo":{"id":56543423,"name":"little_shop","full_name":"JaredRoth/little_shop","owner":{"login":"JaredRoth","id":11217220,"avatar_url":"https://avatars.githubusercontent.com/u/11217220?v=3","gravatar_id":"","url":"https://api.github.com/users/JaredRoth","html_url":"https://github.com/JaredRoth","followers_url":"https://api.github.com/users/JaredRoth/followers","following_url":"https://api.github.com/users/JaredRoth/following{/other_user}","gists_url":"https://api.github.com/users/JaredRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/JaredRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaredRoth/subscriptions","organizations_url":"https://api.github.com/users/JaredRoth/orgs","repos_url":"https://api.github.com/users/JaredRoth/repos","events_url":"https://api.github.com/users/JaredRoth/events{/privacy}","received_events_url":"https://api.github.com/users/JaredRoth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JaredRoth/little_shop","description":null,"fork":false,"url":"https://api.github.com/repos/JaredRoth/little_shop","forks_url":"https://api.github.com/repos/JaredRoth/little_shop/forks","keys_url":"https://api.github.com/repos/JaredRoth/little_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JaredRoth/little_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JaredRoth/little_shop/teams","hooks_url":"https://api.github.com/repos/JaredRoth/little_shop/hooks","issue_events_url":"https://api.github.com/repos/JaredRoth/little_shop/issues/events{/number}","events_url":"https://api.github.com/repos/JaredRoth/little_shop/events","assignees_url":"https://api.github.com/repos/JaredRoth/little_shop/assignees{/user}","branches_url":"https://api.github.com/repos/JaredRoth/little_shop/branches{/branch}","tags_url":"https://api.github.com/repos/JaredRoth/little_shop/tags","blobs_url":"https://api.github.com/repos/JaredRoth/little_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JaredRoth/little_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JaredRoth/little_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/JaredRoth/little_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JaredRoth/little_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/JaredRoth/little_shop/languages","stargazers_url":"https://api.github.com/repos/JaredRoth/little_shop/stargazers","contributors_url":"https://api.github.com/repos/JaredRoth/little_shop/contributors","subscribers_url":"https://api.github.com/repos/JaredRoth/little_shop/subscribers","subscription_url":"https://api.github.com/repos/JaredRoth/little_shop/subscription","commits_url":"https://api.github.com/repos/JaredRoth/little_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/JaredRoth/little_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/JaredRoth/little_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/JaredRoth/little_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/JaredRoth/little_shop/contents/{+path}","compare_url":"https://api.github.com/repos/JaredRoth/little_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JaredRoth/little_shop/merges","archive_url":"https://api.github.com/repos/JaredRoth/little_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JaredRoth/little_shop/downloads","issues_url":"https://api.github.com/repos/JaredRoth/little_shop/issues{/number}","pulls_url":"https://api.github.com/repos/JaredRoth/little_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/JaredRoth/little_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/JaredRoth/little_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JaredRoth/little_shop/labels{/name}","releases_url":"https://api.github.com/repos/JaredRoth/little_shop/releases{/id}","deployments_url":"https://api.github.com/repos/JaredRoth/little_shop/deployments","created_at":"2016-04-18T21:27:58Z","updated_at":"2016-04-18T21:30:13Z","pushed_at":"2016-04-21T19:20:38Z","git_url":"git://github.com/JaredRoth/little_shop.git","ssh_url":"git@github.com:JaredRoth/little_shop.git","clone_url":"https://github.com/JaredRoth/little_shop.git","svn_url":"https://github.com/JaredRoth/little_shop","homepage":null,"size":91,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"JaredRoth:adding-category-sidebar","ref":"adding-category-sidebar","sha":"e12934616cd764346e1032235ee20d75283ee330","user":{"login":"JaredRoth","id":11217220,"avatar_url":"https://avatars.githubusercontent.com/u/11217220?v=3","gravatar_id":"","url":"https://api.github.com/users/JaredRoth","html_url":"https://github.com/JaredRoth","followers_url":"https://api.github.com/users/JaredRoth/followers","following_url":"https://api.github.com/users/JaredRoth/following{/other_user}","gists_url":"https://api.github.com/users/JaredRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/JaredRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaredRoth/subscriptions","organizations_url":"https://api.github.com/users/JaredRoth/orgs","repos_url":"https://api.github.com/users/JaredRoth/repos","events_url":"https://api.github.com/users/JaredRoth/events{/privacy}","received_events_url":"https://api.github.com/users/JaredRoth/received_events","type":"User","site_admin":false},"repo":{"id":56543423,"name":"little_shop","full_name":"JaredRoth/little_shop","owner":{"login":"JaredRoth","id":11217220,"avatar_url":"https://avatars.githubusercontent.com/u/11217220?v=3","gravatar_id":"","url":"https://api.github.com/users/JaredRoth","html_url":"https://github.com/JaredRoth","followers_url":"https://api.github.com/users/JaredRoth/followers","following_url":"https://api.github.com/users/JaredRoth/following{/other_user}","gists_url":"https://api.github.com/users/JaredRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/JaredRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaredRoth/subscriptions","organizations_url":"https://api.github.com/users/JaredRoth/orgs","repos_url":"https://api.github.com/users/JaredRoth/repos","events_url":"https://api.github.com/users/JaredRoth/events{/privacy}","received_events_url":"https://api.github.com/users/JaredRoth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JaredRoth/little_shop","description":null,"fork":false,"url":"https://api.github.com/repos/JaredRoth/little_shop","forks_url":"https://api.github.com/repos/JaredRoth/little_shop/forks","keys_url":"https://api.github.com/repos/JaredRoth/little_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JaredRoth/little_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JaredRoth/little_shop/teams","hooks_url":"https://api.github.com/repos/JaredRoth/little_shop/hooks","issue_events_url":"https://api.github.com/repos/JaredRoth/little_shop/issues/events{/number}","events_url":"https://api.github.com/repos/JaredRoth/little_shop/events","assignees_url":"https://api.github.com/repos/JaredRoth/little_shop/assignees{/user}","branches_url":"https://api.github.com/repos/JaredRoth/little_shop/branches{/branch}","tags_url":"https://api.github.com/repos/JaredRoth/little_shop/tags","blobs_url":"https://api.github.com/repos/JaredRoth/little_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JaredRoth/little_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JaredRoth/little_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/JaredRoth/little_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JaredRoth/little_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/JaredRoth/little_shop/languages","stargazers_url":"https://api.github.com/repos/JaredRoth/little_shop/stargazers","contributors_url":"https://api.github.com/repos/JaredRoth/little_shop/contributors","subscribers_url":"https://api.github.com/repos/JaredRoth/little_shop/subscribers","subscription_url":"https://api.github.com/repos/JaredRoth/little_shop/subscription","commits_url":"https://api.github.com/repos/JaredRoth/little_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/JaredRoth/little_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/JaredRoth/little_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/JaredRoth/little_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/JaredRoth/little_shop/contents/{+path}","compare_url":"https://api.github.com/repos/JaredRoth/little_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JaredRoth/little_shop/merges","archive_url":"https://api.github.com/repos/JaredRoth/little_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JaredRoth/little_shop/downloads","issues_url":"https://api.github.com/repos/JaredRoth/little_shop/issues{/number}","pulls_url":"https://api.github.com/repos/JaredRoth/little_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/JaredRoth/little_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/JaredRoth/little_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JaredRoth/little_shop/labels{/name}","releases_url":"https://api.github.com/repos/JaredRoth/little_shop/releases{/id}","deployments_url":"https://api.github.com/repos/JaredRoth/little_shop/deployments","created_at":"2016-04-18T21:27:58Z","updated_at":"2016-04-18T21:30:13Z","pushed_at":"2016-04-21T19:20:38Z","git_url":"git://github.com/JaredRoth/little_shop.git","ssh_url":"git@github.com:JaredRoth/little_shop.git","clone_url":"https://github.com/JaredRoth/little_shop.git","svn_url":"https://github.com/JaredRoth/little_shop","homepage":null,"size":91,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30"},"html":{"href":"https://github.com/JaredRoth/little_shop/pull/30"},"issue":{"href":"https://api.github.com/repos/JaredRoth/little_shop/issues/30"},"comments":{"href":"https://api.github.com/repos/JaredRoth/little_shop/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/JaredRoth/little_shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JaredRoth/little_shop/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/JaredRoth/little_shop/statuses/c35a175986208a770d273e71d3f9663496ef2e98"}}}}