{"action":"created","comment":{"url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/comments/72893571","id":72893571,"diff_hunk":"@@ -1,31 +1,34 @@\n class OrdersController < ApplicationController\n \n- def index\n-   if current_user\n-     @orders = current_user.orders\n-   else\n-     flash[:danger] = \"Please log in or create an account.\"\n-     redirect_to login_path\n-   end\n- end\n+  def index\n+    if current_user\n+      @orders = current_user.orders\n+    else\n+      flash[:danger] = \"Please log in or create an account.\"\n+      redirect_to login_path\n+    end\n+  end\n \n- def show\n-   @order = current_user.orders.find(params[:id])\n- end\n+  def show\n+    @order = current_user.orders.find(params[:id])\n+  end\n \n- def create\n-   order = Order.create(user_id: current_user.id)\n-\n-   @cart.cart_animals.each do |animal_order|\n-     order.order_animals.create(\n-      order_id: order.id,\n-      animal_id: animal_order.id,\n-      subtotal: animal_order.subtotal,\n-      quantity: animal_order.quantity\n+  def create","path":"app/controllers/orders_controller.rb","position":36,"original_position":36,"commit_id":"f6c8999507f1d26b4d6e2d77af8244a98db6d21f","original_commit_id":"f6c8999507f1d26b4d6e2d77af8244a98db6d21f","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":"Assignment Branch Condition size for create is too high. [15.13/15]<br>Method has too many lines. [14/10]","created_at":"2016-07-30T20:13:49Z","updated_at":"2016-07-30T20:13:49Z","html_url":"https://github.com/matthewrpacker/exotic_pet_shop/pull/65#discussion_r72893571","pull_request_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/comments/72893571"},"html":{"href":"https://github.com/matthewrpacker/exotic_pet_shop/pull/65#discussion_r72893571"},"pull_request":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65","id":79466713,"html_url":"https://github.com/matthewrpacker/exotic_pet_shop/pull/65","diff_url":"https://github.com/matthewrpacker/exotic_pet_shop/pull/65.diff","patch_url":"https://github.com/matthewrpacker/exotic_pet_shop/pull/65.patch","issue_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/65","number":65,"state":"open","locked":false,"title":"Add timestamp to view based on order status","user":{"login":"dtinianow","id":17038607,"avatar_url":"https://avatars.githubusercontent.com/u/17038607?v=3","gravatar_id":"","url":"https://api.github.com/users/dtinianow","html_url":"https://github.com/dtinianow","followers_url":"https://api.github.com/users/dtinianow/followers","following_url":"https://api.github.com/users/dtinianow/following{/other_user}","gists_url":"https://api.github.com/users/dtinianow/gists{/gist_id}","starred_url":"https://api.github.com/users/dtinianow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtinianow/subscriptions","organizations_url":"https://api.github.com/users/dtinianow/orgs","repos_url":"https://api.github.com/users/dtinianow/repos","events_url":"https://api.github.com/users/dtinianow/events{/privacy}","received_events_url":"https://api.github.com/users/dtinianow/received_events","type":"User","site_admin":false},"body":"Refactor cart","created_at":"2016-07-30T20:10:01Z","updated_at":"2016-07-30T20:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31bcd43c55af4ade67a79c4d36d8288b89682e3f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65/commits","review_comments_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65/comments","review_comment_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/65/comments","statuses_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/statuses/f6c8999507f1d26b4d6e2d77af8244a98db6d21f","head":{"label":"matthewrpacker:past_orders","ref":"past_orders","sha":"f6c8999507f1d26b4d6e2d77af8244a98db6d21f","user":{"login":"matthewrpacker","id":14930925,"avatar_url":"https://avatars.githubusercontent.com/u/14930925?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrpacker","html_url":"https://github.com/matthewrpacker","followers_url":"https://api.github.com/users/matthewrpacker/followers","following_url":"https://api.github.com/users/matthewrpacker/following{/other_user}","gists_url":"https://api.github.com/users/matthewrpacker/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrpacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrpacker/subscriptions","organizations_url":"https://api.github.com/users/matthewrpacker/orgs","repos_url":"https://api.github.com/users/matthewrpacker/repos","events_url":"https://api.github.com/users/matthewrpacker/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrpacker/received_events","type":"User","site_admin":false},"repo":{"id":64172124,"name":"exotic_pet_shop","full_name":"matthewrpacker/exotic_pet_shop","owner":{"login":"matthewrpacker","id":14930925,"avatar_url":"https://avatars.githubusercontent.com/u/14930925?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrpacker","html_url":"https://github.com/matthewrpacker","followers_url":"https://api.github.com/users/matthewrpacker/followers","following_url":"https://api.github.com/users/matthewrpacker/following{/other_user}","gists_url":"https://api.github.com/users/matthewrpacker/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrpacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrpacker/subscriptions","organizations_url":"https://api.github.com/users/matthewrpacker/orgs","repos_url":"https://api.github.com/users/matthewrpacker/repos","events_url":"https://api.github.com/users/matthewrpacker/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrpacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewrpacker/exotic_pet_shop","description":null,"fork":false,"url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop","forks_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/forks","keys_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/teams","hooks_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/hooks","issue_events_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/events{/number}","events_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/events","assignees_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/assignees{/user}","branches_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/branches{/branch}","tags_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/tags","blobs_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/languages","stargazers_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/stargazers","contributors_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/contributors","subscribers_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/subscribers","subscription_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/subscription","commits_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/contents/{+path}","compare_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/merges","archive_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/downloads","issues_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues{/number}","pulls_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/labels{/name}","releases_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/releases{/id}","deployments_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/deployments","created_at":"2016-07-25T22:30:08Z","updated_at":"2016-07-28T21:05:12Z","pushed_at":"2016-07-30T20:13:47Z","git_url":"git://github.com/matthewrpacker/exotic_pet_shop.git","ssh_url":"git@github.com:matthewrpacker/exotic_pet_shop.git","clone_url":"https://github.com/matthewrpacker/exotic_pet_shop.git","svn_url":"https://github.com/matthewrpacker/exotic_pet_shop","homepage":null,"size":235,"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":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"matthewrpacker:development","ref":"development","sha":"4f50fc25d6e2dd8e2a79d7df49276a1034e9b547","user":{"login":"matthewrpacker","id":14930925,"avatar_url":"https://avatars.githubusercontent.com/u/14930925?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrpacker","html_url":"https://github.com/matthewrpacker","followers_url":"https://api.github.com/users/matthewrpacker/followers","following_url":"https://api.github.com/users/matthewrpacker/following{/other_user}","gists_url":"https://api.github.com/users/matthewrpacker/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrpacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrpacker/subscriptions","organizations_url":"https://api.github.com/users/matthewrpacker/orgs","repos_url":"https://api.github.com/users/matthewrpacker/repos","events_url":"https://api.github.com/users/matthewrpacker/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrpacker/received_events","type":"User","site_admin":false},"repo":{"id":64172124,"name":"exotic_pet_shop","full_name":"matthewrpacker/exotic_pet_shop","owner":{"login":"matthewrpacker","id":14930925,"avatar_url":"https://avatars.githubusercontent.com/u/14930925?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrpacker","html_url":"https://github.com/matthewrpacker","followers_url":"https://api.github.com/users/matthewrpacker/followers","following_url":"https://api.github.com/users/matthewrpacker/following{/other_user}","gists_url":"https://api.github.com/users/matthewrpacker/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrpacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrpacker/subscriptions","organizations_url":"https://api.github.com/users/matthewrpacker/orgs","repos_url":"https://api.github.com/users/matthewrpacker/repos","events_url":"https://api.github.com/users/matthewrpacker/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrpacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewrpacker/exotic_pet_shop","description":null,"fork":false,"url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop","forks_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/forks","keys_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/teams","hooks_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/hooks","issue_events_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/events{/number}","events_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/events","assignees_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/assignees{/user}","branches_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/branches{/branch}","tags_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/tags","blobs_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/languages","stargazers_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/stargazers","contributors_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/contributors","subscribers_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/subscribers","subscription_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/subscription","commits_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/contents/{+path}","compare_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/merges","archive_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/downloads","issues_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues{/number}","pulls_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/labels{/name}","releases_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/releases{/id}","deployments_url":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/deployments","created_at":"2016-07-25T22:30:08Z","updated_at":"2016-07-28T21:05:12Z","pushed_at":"2016-07-30T20:13:47Z","git_url":"git://github.com/matthewrpacker/exotic_pet_shop.git","ssh_url":"git@github.com:matthewrpacker/exotic_pet_shop.git","clone_url":"https://github.com/matthewrpacker/exotic_pet_shop.git","svn_url":"https://github.com/matthewrpacker/exotic_pet_shop","homepage":null,"size":235,"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":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65"},"html":{"href":"https://github.com/matthewrpacker/exotic_pet_shop/pull/65"},"issue":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/65"},"comments":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/matthewrpacker/exotic_pet_shop/statuses/f6c8999507f1d26b4d6e2d77af8244a98db6d21f"}}}}
{"actor":{"display_login":"houndci-bot"}}