{"action":"created","comment":{"url":"https://api.github.com/repos/weilandia/little_owl/pulls/comments/55158302","id":55158302,"diff_hunk":"@@ -0,0 +1,17 @@\n+class Admin::CommentsController < Admin::BaseController\n+  def create\n+    @comment = Comment.create(comment_params)\n+    if @comment.save\n+      flash[:info] = \"Comments on comments.\"\n+      redirect_to admin_order_path(params[:comment][:order_id])\n+    else\n+      flash.now[:alert] = \"Sorry, friend.  Something went wrong :(... Please try again.\"\n+      render :new\n+    end\n+  end\n+\n+private","path":"app/controllers/admin/comments_controller.rb","position":13,"original_position":13,"commit_id":"eed4e01934f9a063fc6cc32e9b2608e10531801c","original_commit_id":"eed4e01934f9a063fc6cc32e9b2608e10531801c","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":"Indent access modifiers like `private`.<br>Keep a blank line before and after `private`.","created_at":"2016-03-07T03:07:58Z","updated_at":"2016-03-07T03:07:58Z","html_url":"https://github.com/weilandia/little_owl/pull/71#discussion_r55158302","pull_request_url":"https://api.github.com/repos/weilandia/little_owl/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/weilandia/little_owl/pulls/comments/55158302"},"html":{"href":"https://github.com/weilandia/little_owl/pull/71#discussion_r55158302"},"pull_request":{"href":"https://api.github.com/repos/weilandia/little_owl/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/weilandia/little_owl/pulls/71","id":61860758,"html_url":"https://github.com/weilandia/little_owl/pull/71","diff_url":"https://github.com/weilandia/little_owl/pull/71.diff","patch_url":"https://github.com/weilandia/little_owl/pull/71.patch","issue_url":"https://api.github.com/repos/weilandia/little_owl/issues/71","number":71,"state":"open","locked":false,"title":"[wip] admin can view all orders","user":{"login":"damwhit","id":13105577,"avatar_url":"https://avatars.githubusercontent.com/u/13105577?v=3","gravatar_id":"","url":"https://api.github.com/users/damwhit","html_url":"https://github.com/damwhit","followers_url":"https://api.github.com/users/damwhit/followers","following_url":"https://api.github.com/users/damwhit/following{/other_user}","gists_url":"https://api.github.com/users/damwhit/gists{/gist_id}","starred_url":"https://api.github.com/users/damwhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damwhit/subscriptions","organizations_url":"https://api.github.com/users/damwhit/orgs","repos_url":"https://api.github.com/users/damwhit/repos","events_url":"https://api.github.com/users/damwhit/events{/privacy}","received_events_url":"https://api.github.com/users/damwhit/received_events","type":"User","site_admin":false},"body":"DONT merge... tests still failing.\r\n\r\nThe test isn't able to read all attributes for the order.  May need to assert using database instead of local vars.\r\n\r\nadmin can view all orders individually and indexed","created_at":"2016-03-07T00:15:38Z","updated_at":"2016-03-07T03:07:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d5c0f397a9e03bd7ef284610d15f0846ad77ac5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/weilandia/little_owl/pulls/71/commits","review_comments_url":"https://api.github.com/repos/weilandia/little_owl/pulls/71/comments","review_comment_url":"https://api.github.com/repos/weilandia/little_owl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weilandia/little_owl/issues/71/comments","statuses_url":"https://api.github.com/repos/weilandia/little_owl/statuses/eed4e01934f9a063fc6cc32e9b2608e10531801c","head":{"label":"weilandia:admin-can-view-all-orders#48","ref":"admin-can-view-all-orders#48","sha":"eed4e01934f9a063fc6cc32e9b2608e10531801c","user":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"repo":{"id":52821317,"name":"little_owl","full_name":"weilandia/little_owl","owner":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weilandia/little_owl","description":null,"fork":false,"url":"https://api.github.com/repos/weilandia/little_owl","forks_url":"https://api.github.com/repos/weilandia/little_owl/forks","keys_url":"https://api.github.com/repos/weilandia/little_owl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weilandia/little_owl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weilandia/little_owl/teams","hooks_url":"https://api.github.com/repos/weilandia/little_owl/hooks","issue_events_url":"https://api.github.com/repos/weilandia/little_owl/issues/events{/number}","events_url":"https://api.github.com/repos/weilandia/little_owl/events","assignees_url":"https://api.github.com/repos/weilandia/little_owl/assignees{/user}","branches_url":"https://api.github.com/repos/weilandia/little_owl/branches{/branch}","tags_url":"https://api.github.com/repos/weilandia/little_owl/tags","blobs_url":"https://api.github.com/repos/weilandia/little_owl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weilandia/little_owl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weilandia/little_owl/git/refs{/sha}","trees_url":"https://api.github.com/repos/weilandia/little_owl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weilandia/little_owl/statuses/{sha}","languages_url":"https://api.github.com/repos/weilandia/little_owl/languages","stargazers_url":"https://api.github.com/repos/weilandia/little_owl/stargazers","contributors_url":"https://api.github.com/repos/weilandia/little_owl/contributors","subscribers_url":"https://api.github.com/repos/weilandia/little_owl/subscribers","subscription_url":"https://api.github.com/repos/weilandia/little_owl/subscription","commits_url":"https://api.github.com/repos/weilandia/little_owl/commits{/sha}","git_commits_url":"https://api.github.com/repos/weilandia/little_owl/git/commits{/sha}","comments_url":"https://api.github.com/repos/weilandia/little_owl/comments{/number}","issue_comment_url":"https://api.github.com/repos/weilandia/little_owl/issues/comments{/number}","contents_url":"https://api.github.com/repos/weilandia/little_owl/contents/{+path}","compare_url":"https://api.github.com/repos/weilandia/little_owl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weilandia/little_owl/merges","archive_url":"https://api.github.com/repos/weilandia/little_owl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weilandia/little_owl/downloads","issues_url":"https://api.github.com/repos/weilandia/little_owl/issues{/number}","pulls_url":"https://api.github.com/repos/weilandia/little_owl/pulls{/number}","milestones_url":"https://api.github.com/repos/weilandia/little_owl/milestones{/number}","notifications_url":"https://api.github.com/repos/weilandia/little_owl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weilandia/little_owl/labels{/name}","releases_url":"https://api.github.com/repos/weilandia/little_owl/releases{/id}","deployments_url":"https://api.github.com/repos/weilandia/little_owl/deployments","created_at":"2016-02-29T20:13:25Z","updated_at":"2016-03-02T21:26:21Z","pushed_at":"2016-03-07T03:07:49Z","git_url":"git://github.com/weilandia/little_owl.git","ssh_url":"git@github.com:weilandia/little_owl.git","clone_url":"https://github.com/weilandia/little_owl.git","svn_url":"https://github.com/weilandia/little_owl","homepage":null,"size":560,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"weilandia:master","ref":"master","sha":"0f9c8891eb1081955c88d3e1f63e9b55222063e2","user":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"repo":{"id":52821317,"name":"little_owl","full_name":"weilandia/little_owl","owner":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weilandia/little_owl","description":null,"fork":false,"url":"https://api.github.com/repos/weilandia/little_owl","forks_url":"https://api.github.com/repos/weilandia/little_owl/forks","keys_url":"https://api.github.com/repos/weilandia/little_owl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weilandia/little_owl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weilandia/little_owl/teams","hooks_url":"https://api.github.com/repos/weilandia/little_owl/hooks","issue_events_url":"https://api.github.com/repos/weilandia/little_owl/issues/events{/number}","events_url":"https://api.github.com/repos/weilandia/little_owl/events","assignees_url":"https://api.github.com/repos/weilandia/little_owl/assignees{/user}","branches_url":"https://api.github.com/repos/weilandia/little_owl/branches{/branch}","tags_url":"https://api.github.com/repos/weilandia/little_owl/tags","blobs_url":"https://api.github.com/repos/weilandia/little_owl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weilandia/little_owl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weilandia/little_owl/git/refs{/sha}","trees_url":"https://api.github.com/repos/weilandia/little_owl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weilandia/little_owl/statuses/{sha}","languages_url":"https://api.github.com/repos/weilandia/little_owl/languages","stargazers_url":"https://api.github.com/repos/weilandia/little_owl/stargazers","contributors_url":"https://api.github.com/repos/weilandia/little_owl/contributors","subscribers_url":"https://api.github.com/repos/weilandia/little_owl/subscribers","subscription_url":"https://api.github.com/repos/weilandia/little_owl/subscription","commits_url":"https://api.github.com/repos/weilandia/little_owl/commits{/sha}","git_commits_url":"https://api.github.com/repos/weilandia/little_owl/git/commits{/sha}","comments_url":"https://api.github.com/repos/weilandia/little_owl/comments{/number}","issue_comment_url":"https://api.github.com/repos/weilandia/little_owl/issues/comments{/number}","contents_url":"https://api.github.com/repos/weilandia/little_owl/contents/{+path}","compare_url":"https://api.github.com/repos/weilandia/little_owl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weilandia/little_owl/merges","archive_url":"https://api.github.com/repos/weilandia/little_owl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weilandia/little_owl/downloads","issues_url":"https://api.github.com/repos/weilandia/little_owl/issues{/number}","pulls_url":"https://api.github.com/repos/weilandia/little_owl/pulls{/number}","milestones_url":"https://api.github.com/repos/weilandia/little_owl/milestones{/number}","notifications_url":"https://api.github.com/repos/weilandia/little_owl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weilandia/little_owl/labels{/name}","releases_url":"https://api.github.com/repos/weilandia/little_owl/releases{/id}","deployments_url":"https://api.github.com/repos/weilandia/little_owl/deployments","created_at":"2016-02-29T20:13:25Z","updated_at":"2016-03-02T21:26:21Z","pushed_at":"2016-03-07T03:07:49Z","git_url":"git://github.com/weilandia/little_owl.git","ssh_url":"git@github.com:weilandia/little_owl.git","clone_url":"https://github.com/weilandia/little_owl.git","svn_url":"https://github.com/weilandia/little_owl","homepage":null,"size":560,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weilandia/little_owl/pulls/71"},"html":{"href":"https://github.com/weilandia/little_owl/pull/71"},"issue":{"href":"https://api.github.com/repos/weilandia/little_owl/issues/71"},"comments":{"href":"https://api.github.com/repos/weilandia/little_owl/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/weilandia/little_owl/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/weilandia/little_owl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weilandia/little_owl/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/weilandia/little_owl/statuses/eed4e01934f9a063fc6cc32e9b2608e10531801c"}}}}