{"action":"created","comment":{"url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments/67044089","id":67044089,"diff_hunk":"@@ -1,20 +1,20 @@\n class OrdersController < ApplicationController\n+  before_action :current_user_matches_order, only: [:show]\n \n   def index\n     if current_user\n       @orders = current_user.orders\n     else\n       flash.now[:error] = \"Permission Denied\"\n-      redirect_to \"/\"\n+      redirect_to root_path\n     end\n   end\n \n   def create\n-    @order = current_user.orders.new\n-    cart_checker = CartChecker.new(@cart)\n-    if cart_checker.check_cart\n-      @order.save\n-      @order.confirm_order(@cart)\n+    order = current_user.orders.new\n+     if @cart.has_contents","path":"app/controllers/orders_controller.rb","position":21,"original_position":21,"commit_id":"1e54725cce668a2f9e3ab78be438bcaeac83af04","original_commit_id":"1e54725cce668a2f9e3ab78be438bcaeac83af04","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":"Inconsistent indentation detected.","created_at":"2016-06-14T19:53:50Z","updated_at":"2016-06-14T19:53:50Z","html_url":"https://github.com/ExCaelum/desk-nomad/pull/113#discussion_r67044089","pull_request_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments/67044089"},"html":{"href":"https://github.com/ExCaelum/desk-nomad/pull/113#discussion_r67044089"},"pull_request":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113","id":73802836,"html_url":"https://github.com/ExCaelum/desk-nomad/pull/113","diff_url":"https://github.com/ExCaelum/desk-nomad/pull/113.diff","patch_url":"https://github.com/ExCaelum/desk-nomad/pull/113.patch","issue_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/113","number":113,"state":"open","locked":false,"title":"Refactor cart checker","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-14T19:53:44Z","updated_at":"2016-06-14T19:53:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113/commits","review_comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113/comments","review_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/113/comments","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/1e54725cce668a2f9e3ab78be438bcaeac83af04","head":{"label":"ExCaelum:refactor-cart-checker","ref":"refactor-cart-checker","sha":"1e54725cce668a2f9e3ab78be438bcaeac83af04","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"repo":{"id":60564320,"name":"desk-nomad","full_name":"ExCaelum/desk-nomad","owner":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExCaelum/desk-nomad","description":"","fork":false,"url":"https://api.github.com/repos/ExCaelum/desk-nomad","forks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/forks","keys_url":"https://api.github.com/repos/ExCaelum/desk-nomad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExCaelum/desk-nomad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExCaelum/desk-nomad/teams","hooks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/hooks","issue_events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/events{/number}","events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/events","assignees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/assignees{/user}","branches_url":"https://api.github.com/repos/ExCaelum/desk-nomad/branches{/branch}","tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/tags","blobs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/{sha}","languages_url":"https://api.github.com/repos/ExCaelum/desk-nomad/languages","stargazers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/stargazers","contributors_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contributors","subscribers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscribers","subscription_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscription","commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contents/{+path}","compare_url":"https://api.github.com/repos/ExCaelum/desk-nomad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExCaelum/desk-nomad/merges","archive_url":"https://api.github.com/repos/ExCaelum/desk-nomad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExCaelum/desk-nomad/downloads","issues_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues{/number}","pulls_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls{/number}","milestones_url":"https://api.github.com/repos/ExCaelum/desk-nomad/milestones{/number}","notifications_url":"https://api.github.com/repos/ExCaelum/desk-nomad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExCaelum/desk-nomad/labels{/name}","releases_url":"https://api.github.com/repos/ExCaelum/desk-nomad/releases{/id}","deployments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/deployments","created_at":"2016-06-06T22:12:35Z","updated_at":"2016-06-13T21:58:48Z","pushed_at":"2016-06-14T19:53:44Z","git_url":"git://github.com/ExCaelum/desk-nomad.git","ssh_url":"git@github.com:ExCaelum/desk-nomad.git","clone_url":"https://github.com/ExCaelum/desk-nomad.git","svn_url":"https://github.com/ExCaelum/desk-nomad","homepage":"https://desk-nomad.herokuapp.com/","size":15571,"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":26,"forks":0,"open_issues":26,"watchers":0,"default_branch":"master"}},"base":{"label":"ExCaelum:second-dev","ref":"second-dev","sha":"d4086a9ef44d80f80d03144877819955df487bc8","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"repo":{"id":60564320,"name":"desk-nomad","full_name":"ExCaelum/desk-nomad","owner":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExCaelum/desk-nomad","description":"","fork":false,"url":"https://api.github.com/repos/ExCaelum/desk-nomad","forks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/forks","keys_url":"https://api.github.com/repos/ExCaelum/desk-nomad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExCaelum/desk-nomad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExCaelum/desk-nomad/teams","hooks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/hooks","issue_events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/events{/number}","events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/events","assignees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/assignees{/user}","branches_url":"https://api.github.com/repos/ExCaelum/desk-nomad/branches{/branch}","tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/tags","blobs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/{sha}","languages_url":"https://api.github.com/repos/ExCaelum/desk-nomad/languages","stargazers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/stargazers","contributors_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contributors","subscribers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscribers","subscription_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscription","commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contents/{+path}","compare_url":"https://api.github.com/repos/ExCaelum/desk-nomad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExCaelum/desk-nomad/merges","archive_url":"https://api.github.com/repos/ExCaelum/desk-nomad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExCaelum/desk-nomad/downloads","issues_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues{/number}","pulls_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls{/number}","milestones_url":"https://api.github.com/repos/ExCaelum/desk-nomad/milestones{/number}","notifications_url":"https://api.github.com/repos/ExCaelum/desk-nomad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExCaelum/desk-nomad/labels{/name}","releases_url":"https://api.github.com/repos/ExCaelum/desk-nomad/releases{/id}","deployments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/deployments","created_at":"2016-06-06T22:12:35Z","updated_at":"2016-06-13T21:58:48Z","pushed_at":"2016-06-14T19:53:44Z","git_url":"git://github.com/ExCaelum/desk-nomad.git","ssh_url":"git@github.com:ExCaelum/desk-nomad.git","clone_url":"https://github.com/ExCaelum/desk-nomad.git","svn_url":"https://github.com/ExCaelum/desk-nomad","homepage":"https://desk-nomad.herokuapp.com/","size":15571,"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":26,"forks":0,"open_issues":26,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113"},"html":{"href":"https://github.com/ExCaelum/desk-nomad/pull/113"},"issue":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/113"},"comments":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/1e54725cce668a2f9e3ab78be438bcaeac83af04"}}}}
{"actor":{"display_login":"houndci-bot"}}