{"action":"created","comment":{"url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/comments/36286330","id":36286330,"diff_hunk":"@@ -57,7 +57,12 @@ def destroy\n   private\n #    # Use callbacks to share common setup or constraints between actions.\n    def set_user\n-     @user=User.find(params[:id])","path":"app/controllers/users_controller.rb","position":4,"original_position":4,"commit_id":"0e41de8cbcdc6d1325af98afc45d2ccb9bff2c16","original_commit_id":"0e41de8cbcdc6d1325af98afc45d2ccb9bff2c16","user":{"login":"yasinishyn","id":2759317,"avatar_url":"https://avatars.githubusercontent.com/u/2759317?v=3","gravatar_id":"","url":"https://api.github.com/users/yasinishyn","html_url":"https://github.com/yasinishyn","followers_url":"https://api.github.com/users/yasinishyn/followers","following_url":"https://api.github.com/users/yasinishyn/following{/other_user}","gists_url":"https://api.github.com/users/yasinishyn/gists{/gist_id}","starred_url":"https://api.github.com/users/yasinishyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasinishyn/subscriptions","organizations_url":"https://api.github.com/users/yasinishyn/orgs","repos_url":"https://api.github.com/users/yasinishyn/repos","events_url":"https://api.github.com/users/yasinishyn/events{/privacy}","received_events_url":"https://api.github.com/users/yasinishyn/received_events","type":"User","site_admin":false},"body":"replace\r\n if params[:id]\r\n+     then\r\n+       @user = User.find(params[:id])\r\n+     else\r\n+       @user = current_user\r\n+     end\r\nwith\r\n if params[:id]\r\n       @user = User.find(params[:id])\r\n    else\r\n      @user = current_user\r\n    end","created_at":"2015-08-05T10:02:17Z","updated_at":"2015-08-05T10:02:17Z","html_url":"https://github.com/lits-ruby-and-rails-course/geekometer/pull/53#discussion_r36286330","pull_request_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/comments/36286330"},"html":{"href":"https://github.com/lits-ruby-and-rails-course/geekometer/pull/53#discussion_r36286330"},"pull_request":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53","id":41653019,"html_url":"https://github.com/lits-ruby-and-rails-course/geekometer/pull/53","diff_url":"https://github.com/lits-ruby-and-rails-course/geekometer/pull/53.diff","patch_url":"https://github.com/lits-ruby-and-rails-course/geekometer/pull/53.patch","issue_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/53","number":53,"state":"open","locked":false,"title":"remove page profile","user":{"login":"Heat1","id":12510134,"avatar_url":"https://avatars.githubusercontent.com/u/12510134?v=3","gravatar_id":"","url":"https://api.github.com/users/Heat1","html_url":"https://github.com/Heat1","followers_url":"https://api.github.com/users/Heat1/followers","following_url":"https://api.github.com/users/Heat1/following{/other_user}","gists_url":"https://api.github.com/users/Heat1/gists{/gist_id}","starred_url":"https://api.github.com/users/Heat1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heat1/subscriptions","organizations_url":"https://api.github.com/users/Heat1/orgs","repos_url":"https://api.github.com/users/Heat1/repos","events_url":"https://api.github.com/users/Heat1/events{/privacy}","received_events_url":"https://api.github.com/users/Heat1/received_events","type":"User","site_admin":false},"body":"1. Removed page profile\r\n2. Change routes.rb\r\n3. Change  user_controller","created_at":"2015-08-05T08:08:43Z","updated_at":"2015-08-05T10:02:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c40dd87038de4d48d44621dbc942b6cd760f245","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53/commits","review_comments_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53/comments","review_comment_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/53/comments","statuses_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/statuses/0e41de8cbcdc6d1325af98afc45d2ccb9bff2c16","head":{"label":"lits-ruby-and-rails-course:remove_page_profile","ref":"remove_page_profile","sha":"0e41de8cbcdc6d1325af98afc45d2ccb9bff2c16","user":{"login":"lits-ruby-and-rails-course","id":11190248,"avatar_url":"https://avatars.githubusercontent.com/u/11190248?v=3","gravatar_id":"","url":"https://api.github.com/users/lits-ruby-and-rails-course","html_url":"https://github.com/lits-ruby-and-rails-course","followers_url":"https://api.github.com/users/lits-ruby-and-rails-course/followers","following_url":"https://api.github.com/users/lits-ruby-and-rails-course/following{/other_user}","gists_url":"https://api.github.com/users/lits-ruby-and-rails-course/gists{/gist_id}","starred_url":"https://api.github.com/users/lits-ruby-and-rails-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lits-ruby-and-rails-course/subscriptions","organizations_url":"https://api.github.com/users/lits-ruby-and-rails-course/orgs","repos_url":"https://api.github.com/users/lits-ruby-and-rails-course/repos","events_url":"https://api.github.com/users/lits-ruby-and-rails-course/events{/privacy}","received_events_url":"https://api.github.com/users/lits-ruby-and-rails-course/received_events","type":"Organization","site_admin":false},"repo":{"id":36671964,"name":"geekometer","full_name":"lits-ruby-and-rails-course/geekometer","owner":{"login":"lits-ruby-and-rails-course","id":11190248,"avatar_url":"https://avatars.githubusercontent.com/u/11190248?v=3","gravatar_id":"","url":"https://api.github.com/users/lits-ruby-and-rails-course","html_url":"https://github.com/lits-ruby-and-rails-course","followers_url":"https://api.github.com/users/lits-ruby-and-rails-course/followers","following_url":"https://api.github.com/users/lits-ruby-and-rails-course/following{/other_user}","gists_url":"https://api.github.com/users/lits-ruby-and-rails-course/gists{/gist_id}","starred_url":"https://api.github.com/users/lits-ruby-and-rails-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lits-ruby-and-rails-course/subscriptions","organizations_url":"https://api.github.com/users/lits-ruby-and-rails-course/orgs","repos_url":"https://api.github.com/users/lits-ruby-and-rails-course/repos","events_url":"https://api.github.com/users/lits-ruby-and-rails-course/events{/privacy}","received_events_url":"https://api.github.com/users/lits-ruby-and-rails-course/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lits-ruby-and-rails-course/geekometer","description":"Brain pump Ruby On Rails app.","fork":false,"url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer","forks_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/forks","keys_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/teams","hooks_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/hooks","issue_events_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/events{/number}","events_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/events","assignees_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/assignees{/user}","branches_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/branches{/branch}","tags_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/tags","blobs_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/refs{/sha}","trees_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/statuses/{sha}","languages_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/languages","stargazers_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/stargazers","contributors_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/contributors","subscribers_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/subscribers","subscription_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/subscription","commits_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/commits{/sha}","git_commits_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/commits{/sha}","comments_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/comments{/number}","issue_comment_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/comments{/number}","contents_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/contents/{+path}","compare_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/merges","archive_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/downloads","issues_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues{/number}","pulls_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls{/number}","milestones_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/milestones{/number}","notifications_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/labels{/name}","releases_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/releases{/id}","created_at":"2015-06-01T16:01:22Z","updated_at":"2015-06-03T16:44:11Z","pushed_at":"2015-08-05T08:08:43Z","git_url":"git://github.com/lits-ruby-and-rails-course/geekometer.git","ssh_url":"git@github.com:lits-ruby-and-rails-course/geekometer.git","clone_url":"https://github.com/lits-ruby-and-rails-course/geekometer.git","svn_url":"https://github.com/lits-ruby-and-rails-course/geekometer","homepage":null,"size":3016,"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":21,"forks":0,"open_issues":21,"watchers":0,"default_branch":"master"}},"base":{"label":"lits-ruby-and-rails-course:master","ref":"master","sha":"f571ae93dcb5d75764ba2441070556b8887b0642","user":{"login":"lits-ruby-and-rails-course","id":11190248,"avatar_url":"https://avatars.githubusercontent.com/u/11190248?v=3","gravatar_id":"","url":"https://api.github.com/users/lits-ruby-and-rails-course","html_url":"https://github.com/lits-ruby-and-rails-course","followers_url":"https://api.github.com/users/lits-ruby-and-rails-course/followers","following_url":"https://api.github.com/users/lits-ruby-and-rails-course/following{/other_user}","gists_url":"https://api.github.com/users/lits-ruby-and-rails-course/gists{/gist_id}","starred_url":"https://api.github.com/users/lits-ruby-and-rails-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lits-ruby-and-rails-course/subscriptions","organizations_url":"https://api.github.com/users/lits-ruby-and-rails-course/orgs","repos_url":"https://api.github.com/users/lits-ruby-and-rails-course/repos","events_url":"https://api.github.com/users/lits-ruby-and-rails-course/events{/privacy}","received_events_url":"https://api.github.com/users/lits-ruby-and-rails-course/received_events","type":"Organization","site_admin":false},"repo":{"id":36671964,"name":"geekometer","full_name":"lits-ruby-and-rails-course/geekometer","owner":{"login":"lits-ruby-and-rails-course","id":11190248,"avatar_url":"https://avatars.githubusercontent.com/u/11190248?v=3","gravatar_id":"","url":"https://api.github.com/users/lits-ruby-and-rails-course","html_url":"https://github.com/lits-ruby-and-rails-course","followers_url":"https://api.github.com/users/lits-ruby-and-rails-course/followers","following_url":"https://api.github.com/users/lits-ruby-and-rails-course/following{/other_user}","gists_url":"https://api.github.com/users/lits-ruby-and-rails-course/gists{/gist_id}","starred_url":"https://api.github.com/users/lits-ruby-and-rails-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lits-ruby-and-rails-course/subscriptions","organizations_url":"https://api.github.com/users/lits-ruby-and-rails-course/orgs","repos_url":"https://api.github.com/users/lits-ruby-and-rails-course/repos","events_url":"https://api.github.com/users/lits-ruby-and-rails-course/events{/privacy}","received_events_url":"https://api.github.com/users/lits-ruby-and-rails-course/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lits-ruby-and-rails-course/geekometer","description":"Brain pump Ruby On Rails app.","fork":false,"url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer","forks_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/forks","keys_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/teams","hooks_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/hooks","issue_events_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/events{/number}","events_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/events","assignees_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/assignees{/user}","branches_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/branches{/branch}","tags_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/tags","blobs_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/refs{/sha}","trees_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/statuses/{sha}","languages_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/languages","stargazers_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/stargazers","contributors_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/contributors","subscribers_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/subscribers","subscription_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/subscription","commits_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/commits{/sha}","git_commits_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/git/commits{/sha}","comments_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/comments{/number}","issue_comment_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/comments{/number}","contents_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/contents/{+path}","compare_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/merges","archive_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/downloads","issues_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues{/number}","pulls_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls{/number}","milestones_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/milestones{/number}","notifications_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/labels{/name}","releases_url":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/releases{/id}","created_at":"2015-06-01T16:01:22Z","updated_at":"2015-06-03T16:44:11Z","pushed_at":"2015-08-05T08:08:43Z","git_url":"git://github.com/lits-ruby-and-rails-course/geekometer.git","ssh_url":"git@github.com:lits-ruby-and-rails-course/geekometer.git","clone_url":"https://github.com/lits-ruby-and-rails-course/geekometer.git","svn_url":"https://github.com/lits-ruby-and-rails-course/geekometer","homepage":null,"size":3016,"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":21,"forks":0,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53"},"html":{"href":"https://github.com/lits-ruby-and-rails-course/geekometer/pull/53"},"issue":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/53"},"comments":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/lits-ruby-and-rails-course/geekometer/statuses/0e41de8cbcdc6d1325af98afc45d2ccb9bff2c16"}}}}