{"action":"created","comment":{"url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments/30567814","id":30567814,"diff_hunk":"@@ -1,15 +1,35 @@\n class UsersController < ApplicationController\n-  before_filter :authorize\n \n   def show\n-    @orders = Order.where(user_id: current_user.id)\n+    if current_user.nil?\n+      redirect_to login_path, alert: \"You must sign in\" \n+    else\n+      @orders = Order.where(user_id: current_user.id)\n+    end\n   end\n \n-  private\n+  def new\n+  end\n \n-  def authorize\n-    if current_user.nil?\n-      redirect_to login_path, alert: \"You must sign in\"\n+  def create\n+     @user = User.new(user_params)","path":"app/controllers/users_controller.rb","position":21,"original_position":21,"commit_id":"13c02d420d5896fb2938c3003dad95422d2e3c26","original_commit_id":"13c02d420d5896fb2938c3003dad95422d2e3c26","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":"Use 2 (not 3) spaces for indentation.","created_at":"2015-05-19T03:59:52Z","updated_at":"2015-05-19T03:59:52Z","html_url":"https://github.com/indiesquidge/dinner_dash/pull/103#discussion_r30567814","pull_request_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments/30567814"},"html":{"href":"https://github.com/indiesquidge/dinner_dash/pull/103#discussion_r30567814"},"pull_request":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103","id":35694324,"html_url":"https://github.com/indiesquidge/dinner_dash/pull/103","diff_url":"https://github.com/indiesquidge/dinner_dash/pull/103.diff","patch_url":"https://github.com/indiesquidge/dinner_dash/pull/103.patch","issue_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/103","number":103,"state":"open","locked":false,"title":"Account creation","user":{"login":"mirjoy","id":5142805,"avatar_url":"https://avatars.githubusercontent.com/u/5142805?v=3","gravatar_id":"","url":"https://api.github.com/users/mirjoy","html_url":"https://github.com/mirjoy","followers_url":"https://api.github.com/users/mirjoy/followers","following_url":"https://api.github.com/users/mirjoy/following{/other_user}","gists_url":"https://api.github.com/users/mirjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/mirjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirjoy/subscriptions","organizations_url":"https://api.github.com/users/mirjoy/orgs","repos_url":"https://api.github.com/users/mirjoy/repos","events_url":"https://api.github.com/users/mirjoy/events{/privacy}","received_events_url":"https://api.github.com/users/mirjoy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-19T03:59:41Z","updated_at":"2015-05-19T03:59:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a42a0ad7f4fd8486324c2330a2bf86b770c9c9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103/commits","review_comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103/comments","review_comment_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/103/comments","statuses_url":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/13c02d420d5896fb2938c3003dad95422d2e3c26","head":{"label":"indiesquidge:account-creation","ref":"account-creation","sha":"13c02d420d5896fb2938c3003dad95422d2e3c26","user":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"repo":{"id":31906362,"name":"dinner_dash","full_name":"indiesquidge/dinner_dash","owner":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indiesquidge/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/indiesquidge/dinner_dash","forks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/forks","keys_url":"https://api.github.com/repos/indiesquidge/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiesquidge/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiesquidge/dinner_dash/teams","hooks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/events","assignees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/indiesquidge/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/tags","blobs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/indiesquidge/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscription","commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/indiesquidge/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiesquidge/dinner_dash/merges","archive_url":"https://api.github.com/repos/indiesquidge/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiesquidge/dinner_dash/downloads","issues_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/indiesquidge/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/indiesquidge/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiesquidge/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/indiesquidge/dinner_dash/releases{/id}","created_at":"2015-03-09T15:29:10Z","updated_at":"2015-04-21T17:45:56Z","pushed_at":"2015-05-19T03:59:42Z","git_url":"git://github.com/indiesquidge/dinner_dash.git","ssh_url":"git@github.com:indiesquidge/dinner_dash.git","clone_url":"https://github.com/indiesquidge/dinner_dash.git","svn_url":"https://github.com/indiesquidge/dinner_dash","homepage":null,"size":12983,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"indiesquidge:master","ref":"master","sha":"6805292c226539fc0631e416f8799ec30ff1cfd1","user":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"repo":{"id":31906362,"name":"dinner_dash","full_name":"indiesquidge/dinner_dash","owner":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indiesquidge/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/indiesquidge/dinner_dash","forks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/forks","keys_url":"https://api.github.com/repos/indiesquidge/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiesquidge/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiesquidge/dinner_dash/teams","hooks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/events","assignees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/indiesquidge/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/tags","blobs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/indiesquidge/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscription","commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/indiesquidge/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiesquidge/dinner_dash/merges","archive_url":"https://api.github.com/repos/indiesquidge/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiesquidge/dinner_dash/downloads","issues_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/indiesquidge/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/indiesquidge/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiesquidge/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/indiesquidge/dinner_dash/releases{/id}","created_at":"2015-03-09T15:29:10Z","updated_at":"2015-04-21T17:45:56Z","pushed_at":"2015-05-19T03:59:42Z","git_url":"git://github.com/indiesquidge/dinner_dash.git","ssh_url":"git@github.com:indiesquidge/dinner_dash.git","clone_url":"https://github.com/indiesquidge/dinner_dash.git","svn_url":"https://github.com/indiesquidge/dinner_dash","homepage":null,"size":12983,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103"},"html":{"href":"https://github.com/indiesquidge/dinner_dash/pull/103"},"issue":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/103"},"comments":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/13c02d420d5896fb2938c3003dad95422d2e3c26"}}}}