{"action":"created","comment":{"url":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments/33412640","id":33412640,"diff_hunk":"@@ -32,17 +37,6 @@ def show\n   end\n \n   def user_params\n-    params.require(:user).permit(:email, :password, :full_name)\n-  end\n-\n-  private\n-\n-  def handle_invitation\n-    if params[:invitation_token].present?\n-      invitation = Invitation.where(token: params[:invitation_token]).first\n-      @user.follow(invitation.inviter)\n-      invitation.inviter.follow(@user)\n-      invitation.update_column(:token, nil)\n-    end\n+    params.require(:user).permit(:email, :password, :full_name, :stripeToken)","path":"app/controllers/users_controller.rb","position":42,"original_position":42,"commit_id":"7760a6f1bfc777cfb4d3d43ad53911a8907b8f22","original_commit_id":"7760a6f1bfc777cfb4d3d43ad53911a8907b8f22","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"Why is `stripeToken` among required params. Why do you think it figures under `:user` as well?","created_at":"2015-06-27T13:09:08Z","updated_at":"2015-06-27T13:09:08Z","html_url":"https://github.com/falonofthetower/myflix/pull/54#discussion_r33412640","pull_request_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments/33412640"},"html":{"href":"https://github.com/falonofthetower/myflix/pull/54#discussion_r33412640"},"pull_request":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/falonofthetower/myflix/pulls/54","id":38704030,"html_url":"https://github.com/falonofthetower/myflix/pull/54","diff_url":"https://github.com/falonofthetower/myflix/pull/54.diff","patch_url":"https://github.com/falonofthetower/myflix/pull/54.patch","issue_url":"https://api.github.com/repos/falonofthetower/myflix/issues/54","number":54,"state":"open","locked":false,"title":"Staging","user":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-27T04:54:45Z","updated_at":"2015-06-27T13:09:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8aa8d26df1eee3443cfdd202e3e1060c100a167","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/54/commits","review_comments_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/54/comments","review_comment_url":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/falonofthetower/myflix/issues/54/comments","statuses_url":"https://api.github.com/repos/falonofthetower/myflix/statuses/7760a6f1bfc777cfb4d3d43ad53911a8907b8f22","head":{"label":"falonofthetower:staging","ref":"staging","sha":"7760a6f1bfc777cfb4d3d43ad53911a8907b8f22","user":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"repo":{"id":28207266,"name":"myflix","full_name":"falonofthetower/myflix","owner":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/falonofthetower/myflix","description":"","fork":false,"url":"https://api.github.com/repos/falonofthetower/myflix","forks_url":"https://api.github.com/repos/falonofthetower/myflix/forks","keys_url":"https://api.github.com/repos/falonofthetower/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/falonofthetower/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/falonofthetower/myflix/teams","hooks_url":"https://api.github.com/repos/falonofthetower/myflix/hooks","issue_events_url":"https://api.github.com/repos/falonofthetower/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/falonofthetower/myflix/events","assignees_url":"https://api.github.com/repos/falonofthetower/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/falonofthetower/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/falonofthetower/myflix/tags","blobs_url":"https://api.github.com/repos/falonofthetower/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/falonofthetower/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/falonofthetower/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/falonofthetower/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/falonofthetower/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/falonofthetower/myflix/languages","stargazers_url":"https://api.github.com/repos/falonofthetower/myflix/stargazers","contributors_url":"https://api.github.com/repos/falonofthetower/myflix/contributors","subscribers_url":"https://api.github.com/repos/falonofthetower/myflix/subscribers","subscription_url":"https://api.github.com/repos/falonofthetower/myflix/subscription","commits_url":"https://api.github.com/repos/falonofthetower/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/falonofthetower/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/falonofthetower/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/falonofthetower/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/falonofthetower/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/falonofthetower/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/falonofthetower/myflix/merges","archive_url":"https://api.github.com/repos/falonofthetower/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/falonofthetower/myflix/downloads","issues_url":"https://api.github.com/repos/falonofthetower/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/falonofthetower/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/falonofthetower/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/falonofthetower/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/falonofthetower/myflix/labels{/name}","releases_url":"https://api.github.com/repos/falonofthetower/myflix/releases{/id}","created_at":"2014-12-19T00:10:03Z","updated_at":"2015-05-04T19:42:54Z","pushed_at":"2015-06-27T04:54:45Z","git_url":"git://github.com/falonofthetower/myflix.git","ssh_url":"git@github.com:falonofthetower/myflix.git","clone_url":"https://github.com/falonofthetower/myflix.git","svn_url":"https://github.com/falonofthetower/myflix","homepage":null,"size":1584,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"base":{"label":"falonofthetower:master","ref":"master","sha":"71109892bff7d3d16b62b3dc1ab47f704bc78ca8","user":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"repo":{"id":28207266,"name":"myflix","full_name":"falonofthetower/myflix","owner":{"login":"falonofthetower","id":6103923,"avatar_url":"https://avatars.githubusercontent.com/u/6103923?v=3","gravatar_id":"","url":"https://api.github.com/users/falonofthetower","html_url":"https://github.com/falonofthetower","followers_url":"https://api.github.com/users/falonofthetower/followers","following_url":"https://api.github.com/users/falonofthetower/following{/other_user}","gists_url":"https://api.github.com/users/falonofthetower/gists{/gist_id}","starred_url":"https://api.github.com/users/falonofthetower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falonofthetower/subscriptions","organizations_url":"https://api.github.com/users/falonofthetower/orgs","repos_url":"https://api.github.com/users/falonofthetower/repos","events_url":"https://api.github.com/users/falonofthetower/events{/privacy}","received_events_url":"https://api.github.com/users/falonofthetower/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/falonofthetower/myflix","description":"","fork":false,"url":"https://api.github.com/repos/falonofthetower/myflix","forks_url":"https://api.github.com/repos/falonofthetower/myflix/forks","keys_url":"https://api.github.com/repos/falonofthetower/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/falonofthetower/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/falonofthetower/myflix/teams","hooks_url":"https://api.github.com/repos/falonofthetower/myflix/hooks","issue_events_url":"https://api.github.com/repos/falonofthetower/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/falonofthetower/myflix/events","assignees_url":"https://api.github.com/repos/falonofthetower/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/falonofthetower/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/falonofthetower/myflix/tags","blobs_url":"https://api.github.com/repos/falonofthetower/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/falonofthetower/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/falonofthetower/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/falonofthetower/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/falonofthetower/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/falonofthetower/myflix/languages","stargazers_url":"https://api.github.com/repos/falonofthetower/myflix/stargazers","contributors_url":"https://api.github.com/repos/falonofthetower/myflix/contributors","subscribers_url":"https://api.github.com/repos/falonofthetower/myflix/subscribers","subscription_url":"https://api.github.com/repos/falonofthetower/myflix/subscription","commits_url":"https://api.github.com/repos/falonofthetower/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/falonofthetower/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/falonofthetower/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/falonofthetower/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/falonofthetower/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/falonofthetower/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/falonofthetower/myflix/merges","archive_url":"https://api.github.com/repos/falonofthetower/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/falonofthetower/myflix/downloads","issues_url":"https://api.github.com/repos/falonofthetower/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/falonofthetower/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/falonofthetower/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/falonofthetower/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/falonofthetower/myflix/labels{/name}","releases_url":"https://api.github.com/repos/falonofthetower/myflix/releases{/id}","created_at":"2014-12-19T00:10:03Z","updated_at":"2015-05-04T19:42:54Z","pushed_at":"2015-06-27T04:54:45Z","git_url":"git://github.com/falonofthetower/myflix.git","ssh_url":"git@github.com:falonofthetower/myflix.git","clone_url":"https://github.com/falonofthetower/myflix.git","svn_url":"https://github.com/falonofthetower/myflix","homepage":null,"size":1584,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/54"},"html":{"href":"https://github.com/falonofthetower/myflix/pull/54"},"issue":{"href":"https://api.github.com/repos/falonofthetower/myflix/issues/54"},"comments":{"href":"https://api.github.com/repos/falonofthetower/myflix/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/falonofthetower/myflix/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/falonofthetower/myflix/statuses/7760a6f1bfc777cfb4d3d43ad53911a8907b8f22"}}}}