{"action":"created","comment":{"url":"https://api.github.com/repos/night1300013/Blocipedia/pulls/comments/166184209","pull_request_review_id":94222290,"id":166184209,"diff_hunk":"@@ -0,0 +1,94 @@\n+# frozen_string_literal: true\n+\n+class Users::RegistrationsController < Devise::RegistrationsController\n+  # before_action :configure_sign_up_params, only: [:create]\n+  # before_action :configure_account_update_params, only: [:update]\n+\n+  # GET /resource/sign_up\n+  # def new\n+  #   super\n+  # end\n+\n+  # POST /resource\n+  # def create\n+  #   super\n+  # end\n+\n+  # GET /resource/edit\n+  # def edit\n+  #   super\n+  # end\n+\n+  # PUT /resource\n+  # def update\n+  #   super\n+  # end\n+\n+  # DELETE /resource\n+  # def destroy\n+  #   super\n+  # end\n+\n+  # GET /resource/cancel\n+  # Forces the session data which is usually expired after sign\n+  # in to be expired now. This is useful if the user wants to\n+  # cancel oauth signing in/up in the middle of the process,\n+  # removing all OAuth session data.\n+  # def cancel\n+  #   super\n+  # end\n+\n+  # protected\n+\n+  # If you have extra params to permit, append them to the sanitizer.\n+  # def configure_sign_up_params\n+  #   devise_parameter_sanitizer.permit(:sign_up, keys: [:attribute])\n+  # end\n+\n+  # If you have extra params to permit, append them to the sanitizer.\n+  # def configure_account_update_params\n+  #   devise_parameter_sanitizer.permit(:account_update, keys: [:attribute])\n+  # end\n+\n+  # The path used after sign up.\n+  # def after_sign_up_path_for(resource)\n+  #   super(resource)\n+  # end\n+\n+  # The path used after sign up for inactive accounts.\n+  # def after_inactive_sign_up_path_for(resource)\n+  #   super(resource)\n+  # end\n+\n+  def downgrade\n+    @user = current_user","path":"app/controllers/users/registrations_controller.rb","position":64,"original_position":64,"commit_id":"145e5de2488444e532a6d4efac5441f09f856383","original_commit_id":"145e5de2488444e532a6d4efac5441f09f856383","user":{"login":"raderj89","id":2731016,"avatar_url":"https://avatars1.githubusercontent.com/u/2731016?v=4","gravatar_id":"","url":"https://api.github.com/users/raderj89","html_url":"https://github.com/raderj89","followers_url":"https://api.github.com/users/raderj89/followers","following_url":"https://api.github.com/users/raderj89/following{/other_user}","gists_url":"https://api.github.com/users/raderj89/gists{/gist_id}","starred_url":"https://api.github.com/users/raderj89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raderj89/subscriptions","organizations_url":"https://api.github.com/users/raderj89/orgs","repos_url":"https://api.github.com/users/raderj89/repos","events_url":"https://api.github.com/users/raderj89/events{/privacy}","received_events_url":"https://api.github.com/users/raderj89/received_events","type":"User","site_admin":false},"body":"you don't need `@user` if you're using `current_user` - can just use `current_user`","created_at":"2018-02-06T04:21:20Z","updated_at":"2018-02-06T04:21:20Z","html_url":"https://github.com/night1300013/Blocipedia/pull/2#discussion_r166184209","pull_request_url":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/night1300013/Blocipedia/pulls/comments/166184209"},"html":{"href":"https://github.com/night1300013/Blocipedia/pull/2#discussion_r166184209"},"pull_request":{"href":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2","id":166999855,"html_url":"https://github.com/night1300013/Blocipedia/pull/2","diff_url":"https://github.com/night1300013/Blocipedia/pull/2.diff","patch_url":"https://github.com/night1300013/Blocipedia/pull/2.patch","issue_url":"https://api.github.com/repos/night1300013/Blocipedia/issues/2","number":2,"state":"open","locked":false,"title":"6 user story upgrading account","user":{"login":"night1300013","id":1654203,"avatar_url":"https://avatars0.githubusercontent.com/u/1654203?v=4","gravatar_id":"","url":"https://api.github.com/users/night1300013","html_url":"https://github.com/night1300013","followers_url":"https://api.github.com/users/night1300013/followers","following_url":"https://api.github.com/users/night1300013/following{/other_user}","gists_url":"https://api.github.com/users/night1300013/gists{/gist_id}","starred_url":"https://api.github.com/users/night1300013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night1300013/subscriptions","organizations_url":"https://api.github.com/users/night1300013/orgs","repos_url":"https://api.github.com/users/night1300013/repos","events_url":"https://api.github.com/users/night1300013/events{/privacy}","received_events_url":"https://api.github.com/users/night1300013/received_events","type":"User","site_admin":false},"body":"Is able to upgrade and downgrade account. It will charge $15 if upgrading the account.\r\n\r\nThere is one issue is that when I click the `upgrade` button to the billing page, the turbolink will pop up error message in the console, a browser refresh is required to able to reach the billing page. I disabled the turbolinks for now.\r\n\r\nAdd the feature that `public all user's public wikis when user downgraded the account`","created_at":"2018-02-04T08:09:08Z","updated_at":"2018-02-06T04:21:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ffcf2973ffe56aa9b4ce00c980f3c65bd034415","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2/commits","review_comments_url":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2/comments","review_comment_url":"https://api.github.com/repos/night1300013/Blocipedia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/night1300013/Blocipedia/issues/2/comments","statuses_url":"https://api.github.com/repos/night1300013/Blocipedia/statuses/145e5de2488444e532a6d4efac5441f09f856383","head":{"label":"night1300013:6-user-story-upgrading-account","ref":"6-user-story-upgrading-account","sha":"145e5de2488444e532a6d4efac5441f09f856383","user":{"login":"night1300013","id":1654203,"avatar_url":"https://avatars0.githubusercontent.com/u/1654203?v=4","gravatar_id":"","url":"https://api.github.com/users/night1300013","html_url":"https://github.com/night1300013","followers_url":"https://api.github.com/users/night1300013/followers","following_url":"https://api.github.com/users/night1300013/following{/other_user}","gists_url":"https://api.github.com/users/night1300013/gists{/gist_id}","starred_url":"https://api.github.com/users/night1300013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night1300013/subscriptions","organizations_url":"https://api.github.com/users/night1300013/orgs","repos_url":"https://api.github.com/users/night1300013/repos","events_url":"https://api.github.com/users/night1300013/events{/privacy}","received_events_url":"https://api.github.com/users/night1300013/received_events","type":"User","site_admin":false},"repo":{"id":119811536,"name":"Blocipedia","full_name":"night1300013/Blocipedia","owner":{"login":"night1300013","id":1654203,"avatar_url":"https://avatars0.githubusercontent.com/u/1654203?v=4","gravatar_id":"","url":"https://api.github.com/users/night1300013","html_url":"https://github.com/night1300013","followers_url":"https://api.github.com/users/night1300013/followers","following_url":"https://api.github.com/users/night1300013/following{/other_user}","gists_url":"https://api.github.com/users/night1300013/gists{/gist_id}","starred_url":"https://api.github.com/users/night1300013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night1300013/subscriptions","organizations_url":"https://api.github.com/users/night1300013/orgs","repos_url":"https://api.github.com/users/night1300013/repos","events_url":"https://api.github.com/users/night1300013/events{/privacy}","received_events_url":"https://api.github.com/users/night1300013/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/night1300013/Blocipedia","description":null,"fork":false,"url":"https://api.github.com/repos/night1300013/Blocipedia","forks_url":"https://api.github.com/repos/night1300013/Blocipedia/forks","keys_url":"https://api.github.com/repos/night1300013/Blocipedia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/night1300013/Blocipedia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/night1300013/Blocipedia/teams","hooks_url":"https://api.github.com/repos/night1300013/Blocipedia/hooks","issue_events_url":"https://api.github.com/repos/night1300013/Blocipedia/issues/events{/number}","events_url":"https://api.github.com/repos/night1300013/Blocipedia/events","assignees_url":"https://api.github.com/repos/night1300013/Blocipedia/assignees{/user}","branches_url":"https://api.github.com/repos/night1300013/Blocipedia/branches{/branch}","tags_url":"https://api.github.com/repos/night1300013/Blocipedia/tags","blobs_url":"https://api.github.com/repos/night1300013/Blocipedia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/night1300013/Blocipedia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/night1300013/Blocipedia/git/refs{/sha}","trees_url":"https://api.github.com/repos/night1300013/Blocipedia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/night1300013/Blocipedia/statuses/{sha}","languages_url":"https://api.github.com/repos/night1300013/Blocipedia/languages","stargazers_url":"https://api.github.com/repos/night1300013/Blocipedia/stargazers","contributors_url":"https://api.github.com/repos/night1300013/Blocipedia/contributors","subscribers_url":"https://api.github.com/repos/night1300013/Blocipedia/subscribers","subscription_url":"https://api.github.com/repos/night1300013/Blocipedia/subscription","commits_url":"https://api.github.com/repos/night1300013/Blocipedia/commits{/sha}","git_commits_url":"https://api.github.com/repos/night1300013/Blocipedia/git/commits{/sha}","comments_url":"https://api.github.com/repos/night1300013/Blocipedia/comments{/number}","issue_comment_url":"https://api.github.com/repos/night1300013/Blocipedia/issues/comments{/number}","contents_url":"https://api.github.com/repos/night1300013/Blocipedia/contents/{+path}","compare_url":"https://api.github.com/repos/night1300013/Blocipedia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/night1300013/Blocipedia/merges","archive_url":"https://api.github.com/repos/night1300013/Blocipedia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/night1300013/Blocipedia/downloads","issues_url":"https://api.github.com/repos/night1300013/Blocipedia/issues{/number}","pulls_url":"https://api.github.com/repos/night1300013/Blocipedia/pulls{/number}","milestones_url":"https://api.github.com/repos/night1300013/Blocipedia/milestones{/number}","notifications_url":"https://api.github.com/repos/night1300013/Blocipedia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/night1300013/Blocipedia/labels{/name}","releases_url":"https://api.github.com/repos/night1300013/Blocipedia/releases{/id}","deployments_url":"https://api.github.com/repos/night1300013/Blocipedia/deployments","created_at":"2018-02-01T09:12:56Z","updated_at":"2018-02-01T09:14:39Z","pushed_at":"2018-02-06T01:52:36Z","git_url":"git://github.com/night1300013/Blocipedia.git","ssh_url":"git@github.com:night1300013/Blocipedia.git","clone_url":"https://github.com/night1300013/Blocipedia.git","svn_url":"https://github.com/night1300013/Blocipedia","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"night1300013:master","ref":"master","sha":"ce4cde06989aaf54689f79384cb70fd988a62c9e","user":{"login":"night1300013","id":1654203,"avatar_url":"https://avatars0.githubusercontent.com/u/1654203?v=4","gravatar_id":"","url":"https://api.github.com/users/night1300013","html_url":"https://github.com/night1300013","followers_url":"https://api.github.com/users/night1300013/followers","following_url":"https://api.github.com/users/night1300013/following{/other_user}","gists_url":"https://api.github.com/users/night1300013/gists{/gist_id}","starred_url":"https://api.github.com/users/night1300013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night1300013/subscriptions","organizations_url":"https://api.github.com/users/night1300013/orgs","repos_url":"https://api.github.com/users/night1300013/repos","events_url":"https://api.github.com/users/night1300013/events{/privacy}","received_events_url":"https://api.github.com/users/night1300013/received_events","type":"User","site_admin":false},"repo":{"id":119811536,"name":"Blocipedia","full_name":"night1300013/Blocipedia","owner":{"login":"night1300013","id":1654203,"avatar_url":"https://avatars0.githubusercontent.com/u/1654203?v=4","gravatar_id":"","url":"https://api.github.com/users/night1300013","html_url":"https://github.com/night1300013","followers_url":"https://api.github.com/users/night1300013/followers","following_url":"https://api.github.com/users/night1300013/following{/other_user}","gists_url":"https://api.github.com/users/night1300013/gists{/gist_id}","starred_url":"https://api.github.com/users/night1300013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night1300013/subscriptions","organizations_url":"https://api.github.com/users/night1300013/orgs","repos_url":"https://api.github.com/users/night1300013/repos","events_url":"https://api.github.com/users/night1300013/events{/privacy}","received_events_url":"https://api.github.com/users/night1300013/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/night1300013/Blocipedia","description":null,"fork":false,"url":"https://api.github.com/repos/night1300013/Blocipedia","forks_url":"https://api.github.com/repos/night1300013/Blocipedia/forks","keys_url":"https://api.github.com/repos/night1300013/Blocipedia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/night1300013/Blocipedia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/night1300013/Blocipedia/teams","hooks_url":"https://api.github.com/repos/night1300013/Blocipedia/hooks","issue_events_url":"https://api.github.com/repos/night1300013/Blocipedia/issues/events{/number}","events_url":"https://api.github.com/repos/night1300013/Blocipedia/events","assignees_url":"https://api.github.com/repos/night1300013/Blocipedia/assignees{/user}","branches_url":"https://api.github.com/repos/night1300013/Blocipedia/branches{/branch}","tags_url":"https://api.github.com/repos/night1300013/Blocipedia/tags","blobs_url":"https://api.github.com/repos/night1300013/Blocipedia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/night1300013/Blocipedia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/night1300013/Blocipedia/git/refs{/sha}","trees_url":"https://api.github.com/repos/night1300013/Blocipedia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/night1300013/Blocipedia/statuses/{sha}","languages_url":"https://api.github.com/repos/night1300013/Blocipedia/languages","stargazers_url":"https://api.github.com/repos/night1300013/Blocipedia/stargazers","contributors_url":"https://api.github.com/repos/night1300013/Blocipedia/contributors","subscribers_url":"https://api.github.com/repos/night1300013/Blocipedia/subscribers","subscription_url":"https://api.github.com/repos/night1300013/Blocipedia/subscription","commits_url":"https://api.github.com/repos/night1300013/Blocipedia/commits{/sha}","git_commits_url":"https://api.github.com/repos/night1300013/Blocipedia/git/commits{/sha}","comments_url":"https://api.github.com/repos/night1300013/Blocipedia/comments{/number}","issue_comment_url":"https://api.github.com/repos/night1300013/Blocipedia/issues/comments{/number}","contents_url":"https://api.github.com/repos/night1300013/Blocipedia/contents/{+path}","compare_url":"https://api.github.com/repos/night1300013/Blocipedia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/night1300013/Blocipedia/merges","archive_url":"https://api.github.com/repos/night1300013/Blocipedia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/night1300013/Blocipedia/downloads","issues_url":"https://api.github.com/repos/night1300013/Blocipedia/issues{/number}","pulls_url":"https://api.github.com/repos/night1300013/Blocipedia/pulls{/number}","milestones_url":"https://api.github.com/repos/night1300013/Blocipedia/milestones{/number}","notifications_url":"https://api.github.com/repos/night1300013/Blocipedia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/night1300013/Blocipedia/labels{/name}","releases_url":"https://api.github.com/repos/night1300013/Blocipedia/releases{/id}","deployments_url":"https://api.github.com/repos/night1300013/Blocipedia/deployments","created_at":"2018-02-01T09:12:56Z","updated_at":"2018-02-01T09:14:39Z","pushed_at":"2018-02-06T01:52:36Z","git_url":"git://github.com/night1300013/Blocipedia.git","ssh_url":"git@github.com:night1300013/Blocipedia.git","clone_url":"https://github.com/night1300013/Blocipedia.git","svn_url":"https://github.com/night1300013/Blocipedia","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2"},"html":{"href":"https://github.com/night1300013/Blocipedia/pull/2"},"issue":{"href":"https://api.github.com/repos/night1300013/Blocipedia/issues/2"},"comments":{"href":"https://api.github.com/repos/night1300013/Blocipedia/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/night1300013/Blocipedia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/night1300013/Blocipedia/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/night1300013/Blocipedia/statuses/145e5de2488444e532a6d4efac5441f09f856383"}},"author_association":"OWNER"}}
{"actor":{"display_login":"raderj89"}}