{"action":"created","comment":{"url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/comments/54025884","id":54025884,"diff_hunk":"@@ -39,6 +39,7 @@ def create\n       puts request.env['HTTP_X_FORWARDED_FOR'].inspect\n       puts '------------'\n       @user.referrer = @referred_by unless @referred_by.nil?\n+      @user.save","path":"app/controllers/users_controller.rb","position":4,"original_position":4,"commit_id":"f6bb960835bf4fca521f22e16a6a08a61856009d","original_commit_id":"f6bb960835bf4fca521f22e16a6a08a61856009d","user":{"login":"jchapin","id":116142,"avatar_url":"https://avatars.githubusercontent.com/u/116142?v=3","gravatar_id":"","url":"https://api.github.com/users/jchapin","html_url":"https://github.com/jchapin","followers_url":"https://api.github.com/users/jchapin/followers","following_url":"https://api.github.com/users/jchapin/following{/other_user}","gists_url":"https://api.github.com/users/jchapin/gists{/gist_id}","starred_url":"https://api.github.com/users/jchapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchapin/subscriptions","organizations_url":"https://api.github.com/users/jchapin/orgs","repos_url":"https://api.github.com/users/jchapin/repos","events_url":"https://api.github.com/users/jchapin/events{/privacy}","received_events_url":"https://api.github.com/users/jchapin/received_events","type":"User","site_admin":false},"body":"This is the fix.","created_at":"2016-02-24T23:27:47Z","updated_at":"2016-02-24T23:27:47Z","html_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/pull/28#discussion_r54025884","pull_request_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/comments/54025884"},"html":{"href":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/pull/28#discussion_r54025884"},"pull_request":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28","id":60597993,"html_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/pull/28","diff_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/pull/28.diff","patch_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/pull/28.patch","issue_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/28","number":28,"state":"open","locked":false,"title":"Fix referral error","user":{"login":"jchapin","id":116142,"avatar_url":"https://avatars.githubusercontent.com/u/116142?v=3","gravatar_id":"","url":"https://api.github.com/users/jchapin","html_url":"https://github.com/jchapin","followers_url":"https://api.github.com/users/jchapin/followers","following_url":"https://api.github.com/users/jchapin/following{/other_user}","gists_url":"https://api.github.com/users/jchapin/gists{/gist_id}","starred_url":"https://api.github.com/users/jchapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchapin/subscriptions","organizations_url":"https://api.github.com/users/jchapin/orgs","repos_url":"https://api.github.com/users/jchapin/repos","events_url":"https://api.github.com/users/jchapin/events{/privacy}","received_events_url":"https://api.github.com/users/jchapin/received_events","type":"User","site_admin":false},"body":"The former line where we were saving and mailing the user really did need to save the user... while the mail action was on a post create action.","created_at":"2016-02-24T23:27:32Z","updated_at":"2016-02-24T23:27:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f45b07bd0d8548373e676380993018ab4b68e3a4","assignee":{"login":"jchapin","id":116142,"avatar_url":"https://avatars.githubusercontent.com/u/116142?v=3","gravatar_id":"","url":"https://api.github.com/users/jchapin","html_url":"https://github.com/jchapin","followers_url":"https://api.github.com/users/jchapin/followers","following_url":"https://api.github.com/users/jchapin/following{/other_user}","gists_url":"https://api.github.com/users/jchapin/gists{/gist_id}","starred_url":"https://api.github.com/users/jchapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchapin/subscriptions","organizations_url":"https://api.github.com/users/jchapin/orgs","repos_url":"https://api.github.com/users/jchapin/repos","events_url":"https://api.github.com/users/jchapin/events{/privacy}","received_events_url":"https://api.github.com/users/jchapin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/milestones/2","html_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/milestones/2016-02","labels_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/milestones/2/labels","id":1591541,"number":2,"title":"2016-02","description":"Milestone due on: Monday, Feb 29","creator":{"login":"jchapin","id":116142,"avatar_url":"https://avatars.githubusercontent.com/u/116142?v=3","gravatar_id":"","url":"https://api.github.com/users/jchapin","html_url":"https://github.com/jchapin","followers_url":"https://api.github.com/users/jchapin/followers","following_url":"https://api.github.com/users/jchapin/following{/other_user}","gists_url":"https://api.github.com/users/jchapin/gists{/gist_id}","starred_url":"https://api.github.com/users/jchapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchapin/subscriptions","organizations_url":"https://api.github.com/users/jchapin/orgs","repos_url":"https://api.github.com/users/jchapin/repos","events_url":"https://api.github.com/users/jchapin/events{/privacy}","received_events_url":"https://api.github.com/users/jchapin/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":15,"state":"open","created_at":"2016-02-18T20:01:51Z","updated_at":"2016-02-24T23:27:32Z","due_on":"2016-02-29T23:59:59Z","closed_at":null},"commits_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28/commits","review_comments_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28/comments","review_comment_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/28/comments","statuses_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/statuses/f6bb960835bf4fca521f22e16a6a08a61856009d","head":{"label":"capitaltechnologyservices:fix-referral-error","ref":"fix-referral-error","sha":"f6bb960835bf4fca521f22e16a6a08a61856009d","user":{"login":"capitaltechnologyservices","id":8429561,"avatar_url":"https://avatars.githubusercontent.com/u/8429561?v=3","gravatar_id":"","url":"https://api.github.com/users/capitaltechnologyservices","html_url":"https://github.com/capitaltechnologyservices","followers_url":"https://api.github.com/users/capitaltechnologyservices/followers","following_url":"https://api.github.com/users/capitaltechnologyservices/following{/other_user}","gists_url":"https://api.github.com/users/capitaltechnologyservices/gists{/gist_id}","starred_url":"https://api.github.com/users/capitaltechnologyservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitaltechnologyservices/subscriptions","organizations_url":"https://api.github.com/users/capitaltechnologyservices/orgs","repos_url":"https://api.github.com/users/capitaltechnologyservices/repos","events_url":"https://api.github.com/users/capitaltechnologyservices/events{/privacy}","received_events_url":"https://api.github.com/users/capitaltechnologyservices/received_events","type":"Organization","site_admin":false},"repo":{"id":43771483,"name":"prelaunchr_for_ni","full_name":"capitaltechnologyservices/prelaunchr_for_ni","owner":{"login":"capitaltechnologyservices","id":8429561,"avatar_url":"https://avatars.githubusercontent.com/u/8429561?v=3","gravatar_id":"","url":"https://api.github.com/users/capitaltechnologyservices","html_url":"https://github.com/capitaltechnologyservices","followers_url":"https://api.github.com/users/capitaltechnologyservices/followers","following_url":"https://api.github.com/users/capitaltechnologyservices/following{/other_user}","gists_url":"https://api.github.com/users/capitaltechnologyservices/gists{/gist_id}","starred_url":"https://api.github.com/users/capitaltechnologyservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitaltechnologyservices/subscriptions","organizations_url":"https://api.github.com/users/capitaltechnologyservices/orgs","repos_url":"https://api.github.com/users/capitaltechnologyservices/repos","events_url":"https://api.github.com/users/capitaltechnologyservices/events{/privacy}","received_events_url":"https://api.github.com/users/capitaltechnologyservices/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni","description":"A small and simple Rails 3.2 project that is ready to be used as a prelaunch site. It includes all the necessary requirements like prize groups, open/closed states, and simple social sharing. ","fork":true,"url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni","forks_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/forks","keys_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/teams","hooks_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/hooks","issue_events_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/events{/number}","events_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/events","assignees_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/assignees{/user}","branches_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/branches{/branch}","tags_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/tags","blobs_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/refs{/sha}","trees_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/statuses/{sha}","languages_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/languages","stargazers_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/stargazers","contributors_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/contributors","subscribers_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/subscribers","subscription_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/subscription","commits_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/commits{/sha}","git_commits_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/commits{/sha}","comments_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/comments{/number}","issue_comment_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/comments{/number}","contents_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/contents/{+path}","compare_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/merges","archive_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/downloads","issues_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues{/number}","pulls_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls{/number}","milestones_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/milestones{/number}","notifications_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/labels{/name}","releases_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/releases{/id}","deployments_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/deployments","created_at":"2015-10-06T18:51:39Z","updated_at":"2016-02-24T14:45:12Z","pushed_at":"2016-02-24T23:27:32Z","git_url":"git://github.com/capitaltechnologyservices/prelaunchr_for_ni.git","ssh_url":"git@github.com:capitaltechnologyservices/prelaunchr_for_ni.git","clone_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni.git","svn_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni","homepage":"","size":6355,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"capitaltechnologyservices:master","ref":"master","sha":"d19e1c1b984d1519fefd922dc3006cd112daf25f","user":{"login":"capitaltechnologyservices","id":8429561,"avatar_url":"https://avatars.githubusercontent.com/u/8429561?v=3","gravatar_id":"","url":"https://api.github.com/users/capitaltechnologyservices","html_url":"https://github.com/capitaltechnologyservices","followers_url":"https://api.github.com/users/capitaltechnologyservices/followers","following_url":"https://api.github.com/users/capitaltechnologyservices/following{/other_user}","gists_url":"https://api.github.com/users/capitaltechnologyservices/gists{/gist_id}","starred_url":"https://api.github.com/users/capitaltechnologyservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitaltechnologyservices/subscriptions","organizations_url":"https://api.github.com/users/capitaltechnologyservices/orgs","repos_url":"https://api.github.com/users/capitaltechnologyservices/repos","events_url":"https://api.github.com/users/capitaltechnologyservices/events{/privacy}","received_events_url":"https://api.github.com/users/capitaltechnologyservices/received_events","type":"Organization","site_admin":false},"repo":{"id":43771483,"name":"prelaunchr_for_ni","full_name":"capitaltechnologyservices/prelaunchr_for_ni","owner":{"login":"capitaltechnologyservices","id":8429561,"avatar_url":"https://avatars.githubusercontent.com/u/8429561?v=3","gravatar_id":"","url":"https://api.github.com/users/capitaltechnologyservices","html_url":"https://github.com/capitaltechnologyservices","followers_url":"https://api.github.com/users/capitaltechnologyservices/followers","following_url":"https://api.github.com/users/capitaltechnologyservices/following{/other_user}","gists_url":"https://api.github.com/users/capitaltechnologyservices/gists{/gist_id}","starred_url":"https://api.github.com/users/capitaltechnologyservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitaltechnologyservices/subscriptions","organizations_url":"https://api.github.com/users/capitaltechnologyservices/orgs","repos_url":"https://api.github.com/users/capitaltechnologyservices/repos","events_url":"https://api.github.com/users/capitaltechnologyservices/events{/privacy}","received_events_url":"https://api.github.com/users/capitaltechnologyservices/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni","description":"A small and simple Rails 3.2 project that is ready to be used as a prelaunch site. It includes all the necessary requirements like prize groups, open/closed states, and simple social sharing. ","fork":true,"url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni","forks_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/forks","keys_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/teams","hooks_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/hooks","issue_events_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/events{/number}","events_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/events","assignees_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/assignees{/user}","branches_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/branches{/branch}","tags_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/tags","blobs_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/refs{/sha}","trees_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/statuses/{sha}","languages_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/languages","stargazers_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/stargazers","contributors_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/contributors","subscribers_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/subscribers","subscription_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/subscription","commits_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/commits{/sha}","git_commits_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/git/commits{/sha}","comments_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/comments{/number}","issue_comment_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/comments{/number}","contents_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/contents/{+path}","compare_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/merges","archive_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/downloads","issues_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues{/number}","pulls_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls{/number}","milestones_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/milestones{/number}","notifications_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/labels{/name}","releases_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/releases{/id}","deployments_url":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/deployments","created_at":"2015-10-06T18:51:39Z","updated_at":"2016-02-24T14:45:12Z","pushed_at":"2016-02-24T23:27:32Z","git_url":"git://github.com/capitaltechnologyservices/prelaunchr_for_ni.git","ssh_url":"git@github.com:capitaltechnologyservices/prelaunchr_for_ni.git","clone_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni.git","svn_url":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni","homepage":"","size":6355,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28"},"html":{"href":"https://github.com/capitaltechnologyservices/prelaunchr_for_ni/pull/28"},"issue":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/28"},"comments":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/capitaltechnologyservices/prelaunchr_for_ni/statuses/f6bb960835bf4fca521f22e16a6a08a61856009d"}}}}