{"action":"created","comment":{"url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments/26629779","id":26629779,"diff_hunk":"@@ -17,4 +18,35 @@ def remove_from_cart(cat)\n       @contents.delete(cat)\n     end\n   end\n+\n+  def create_order_cats(order)\n+    cats_and_quantity.each do |cat_and_quantity|\n+      order.order_cats.create(cat_id: cat_and_quantity[0][\"id\"],\n+                              quantity: cat_and_quantity[1])\n+    end\n+  end\n+\n+  private\n+\n+  def update","path":"app/models/cart.rb","position":25,"original_position":25,"commit_id":"0b8e10854411abda0a0b288ff9c02863fef5786b","original_commit_id":"0b8e10854411abda0a0b288ff9c02863fef5786b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.","created_at":"2015-03-18T00:32:57Z","updated_at":"2015-03-18T00:32:57Z","html_url":"https://github.com/AllPurposeName/dinner_dash/pull/154#discussion_r26629779","pull_request_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154","_links":{"self":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments/26629779"},"html":{"href":"https://github.com/AllPurposeName/dinner_dash/pull/154#discussion_r26629779"},"pull_request":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154"}}},"pull_request":{"url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154","id":31391462,"html_url":"https://github.com/AllPurposeName/dinner_dash/pull/154","diff_url":"https://github.com/AllPurposeName/dinner_dash/pull/154.diff","patch_url":"https://github.com/AllPurposeName/dinner_dash/pull/154.patch","issue_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/154","number":154,"state":"open","locked":false,"title":"Cart fix again","user":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"body":"closed #145 #107 #150 #152 #31 boom.","created_at":"2015-03-18T00:32:55Z","updated_at":"2015-03-18T00:32:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f1958c5dc6faf0dfce1ef5af71d12ffa3ef86e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154/commits","review_comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154/comments","review_comment_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/154/comments","statuses_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/0b8e10854411abda0a0b288ff9c02863fef5786b","head":{"label":"AllPurposeName:cart-fix-again","ref":"cart-fix-again","sha":"0b8e10854411abda0a0b288ff9c02863fef5786b","user":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"repo":{"id":31905240,"name":"dinner_dash","full_name":"AllPurposeName/dinner_dash","owner":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AllPurposeName/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/AllPurposeName/dinner_dash","forks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/forks","keys_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/teams","hooks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/events","assignees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/tags","blobs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscription","commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/merges","archive_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/downloads","issues_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/releases{/id}","created_at":"2015-03-09T15:09:06Z","updated_at":"2015-03-17T22:16:31Z","pushed_at":"2015-03-18T00:12:43Z","git_url":"git://github.com/AllPurposeName/dinner_dash.git","ssh_url":"git@github.com:AllPurposeName/dinner_dash.git","clone_url":"https://github.com/AllPurposeName/dinner_dash.git","svn_url":"https://github.com/AllPurposeName/dinner_dash","homepage":null,"size":2712,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":82,"forks":0,"open_issues":82,"watchers":0,"default_branch":"master"}},"base":{"label":"AllPurposeName:master","ref":"master","sha":"0c35cf4725a694d8f00028375bc507b95994b1b2","user":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"repo":{"id":31905240,"name":"dinner_dash","full_name":"AllPurposeName/dinner_dash","owner":{"login":"AllPurposeName","id":9127698,"avatar_url":"https://avatars.githubusercontent.com/u/9127698?v=3","gravatar_id":"","url":"https://api.github.com/users/AllPurposeName","html_url":"https://github.com/AllPurposeName","followers_url":"https://api.github.com/users/AllPurposeName/followers","following_url":"https://api.github.com/users/AllPurposeName/following{/other_user}","gists_url":"https://api.github.com/users/AllPurposeName/gists{/gist_id}","starred_url":"https://api.github.com/users/AllPurposeName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllPurposeName/subscriptions","organizations_url":"https://api.github.com/users/AllPurposeName/orgs","repos_url":"https://api.github.com/users/AllPurposeName/repos","events_url":"https://api.github.com/users/AllPurposeName/events{/privacy}","received_events_url":"https://api.github.com/users/AllPurposeName/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AllPurposeName/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/AllPurposeName/dinner_dash","forks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/forks","keys_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/teams","hooks_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/events","assignees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/tags","blobs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/subscription","commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/merges","archive_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/downloads","issues_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/AllPurposeName/dinner_dash/releases{/id}","created_at":"2015-03-09T15:09:06Z","updated_at":"2015-03-17T22:16:31Z","pushed_at":"2015-03-18T00:12:43Z","git_url":"git://github.com/AllPurposeName/dinner_dash.git","ssh_url":"git@github.com:AllPurposeName/dinner_dash.git","clone_url":"https://github.com/AllPurposeName/dinner_dash.git","svn_url":"https://github.com/AllPurposeName/dinner_dash","homepage":null,"size":2712,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":82,"forks":0,"open_issues":82,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154"},"html":{"href":"https://github.com/AllPurposeName/dinner_dash/pull/154"},"issue":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/154"},"comments":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/AllPurposeName/dinner_dash/statuses/0b8e10854411abda0a0b288ff9c02863fef5786b"}}}}