{"action":"created","comment":{"url":"https://api.github.com/repos/hooroo/code-snippets/pulls/comments/174671662","pull_request_review_id":104069520,"id":174671662,"diff_hunk":"@@ -9,4 +9,8 @@ class User < ApplicationRecord\n   validates :password, length: { minimum: 8 }\n   validates :first_name, presence: true\n   validates :last_name, presence: true\n+\n+  def to_s\n+    \"#{first_name.capitalize} #{last_name.capitalize}\"","path":"app/models/user.rb","position":6,"original_position":6,"commit_id":"d782f9af29cd2249b16be75924eaa8732c438c4c","original_commit_id":"52145748b5e50cf8d33d430d9263eb1910dc5266","user":{"login":"jonathanly","id":13286473,"avatar_url":"https://avatars3.githubusercontent.com/u/13286473?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanly","html_url":"https://github.com/jonathanly","followers_url":"https://api.github.com/users/jonathanly/followers","following_url":"https://api.github.com/users/jonathanly/following{/other_user}","gists_url":"https://api.github.com/users/jonathanly/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanly/subscriptions","organizations_url":"https://api.github.com/users/jonathanly/orgs","repos_url":"https://api.github.com/users/jonathanly/repos","events_url":"https://api.github.com/users/jonathanly/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanly/received_events","type":"User","site_admin":false},"body":"Thanks Elle, I've changed it to your suggestion as it looks more clean in my opinion :)","created_at":"2018-03-15T03:59:28Z","updated_at":"2018-03-15T03:59:29Z","html_url":"https://github.com/hooroo/code-snippets/pull/12#discussion_r174671662","pull_request_url":"https://api.github.com/repos/hooroo/code-snippets/pulls/12","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/hooroo/code-snippets/pulls/comments/174671662"},"html":{"href":"https://github.com/hooroo/code-snippets/pull/12#discussion_r174671662"},"pull_request":{"href":"https://api.github.com/repos/hooroo/code-snippets/pulls/12"}},"in_reply_to_id":174667823},"pull_request":{"url":"https://api.github.com/repos/hooroo/code-snippets/pulls/12","id":175122008,"html_url":"https://github.com/hooroo/code-snippets/pull/12","diff_url":"https://github.com/hooroo/code-snippets/pull/12.diff","patch_url":"https://github.com/hooroo/code-snippets/pull/12.patch","issue_url":"https://api.github.com/repos/hooroo/code-snippets/issues/12","number":12,"state":"open","locked":false,"title":"User can update account","user":{"login":"jonathanly","id":13286473,"avatar_url":"https://avatars3.githubusercontent.com/u/13286473?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanly","html_url":"https://github.com/jonathanly","followers_url":"https://api.github.com/users/jonathanly/followers","following_url":"https://api.github.com/users/jonathanly/following{/other_user}","gists_url":"https://api.github.com/users/jonathanly/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanly/subscriptions","organizations_url":"https://api.github.com/users/jonathanly/orgs","repos_url":"https://api.github.com/users/jonathanly/repos","events_url":"https://api.github.com/users/jonathanly/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanly/received_events","type":"User","site_admin":false},"body":"## PR Summary\r\n- [x] Add routes `edit` and `update`.\r\n- [x] Add `#edit` and `#update` to users controller.\r\n- [x] Add `#edit` view template.\r\n- [x] Add link button to edit on show page.\r\n- [x] Feature spec for success paths.\r\n- [x] Controller specs for unsuccessful paths.\r\n\r\n\r\n[Link](#) to Trello card. (To be added)","created_at":"2018-03-15T00:45:35Z","updated_at":"2018-03-15T03:59:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2753e1a541013e2731ee22eaa25dc2047d4286fd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hooroo/code-snippets/pulls/12/commits","review_comments_url":"https://api.github.com/repos/hooroo/code-snippets/pulls/12/comments","review_comment_url":"https://api.github.com/repos/hooroo/code-snippets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hooroo/code-snippets/issues/12/comments","statuses_url":"https://api.github.com/repos/hooroo/code-snippets/statuses/d782f9af29cd2249b16be75924eaa8732c438c4c","head":{"label":"hooroo:jl-user-can-update-account","ref":"jl-user-can-update-account","sha":"d782f9af29cd2249b16be75924eaa8732c438c4c","user":{"login":"hooroo","id":785479,"avatar_url":"https://avatars0.githubusercontent.com/u/785479?v=4","gravatar_id":"","url":"https://api.github.com/users/hooroo","html_url":"https://github.com/hooroo","followers_url":"https://api.github.com/users/hooroo/followers","following_url":"https://api.github.com/users/hooroo/following{/other_user}","gists_url":"https://api.github.com/users/hooroo/gists{/gist_id}","starred_url":"https://api.github.com/users/hooroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooroo/subscriptions","organizations_url":"https://api.github.com/users/hooroo/orgs","repos_url":"https://api.github.com/users/hooroo/repos","events_url":"https://api.github.com/users/hooroo/events{/privacy}","received_events_url":"https://api.github.com/users/hooroo/received_events","type":"Organization","site_admin":false},"repo":{"id":113522534,"name":"code-snippets","full_name":"hooroo/code-snippets","owner":{"login":"hooroo","id":785479,"avatar_url":"https://avatars0.githubusercontent.com/u/785479?v=4","gravatar_id":"","url":"https://api.github.com/users/hooroo","html_url":"https://github.com/hooroo","followers_url":"https://api.github.com/users/hooroo/followers","following_url":"https://api.github.com/users/hooroo/following{/other_user}","gists_url":"https://api.github.com/users/hooroo/gists{/gist_id}","starred_url":"https://api.github.com/users/hooroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooroo/subscriptions","organizations_url":"https://api.github.com/users/hooroo/orgs","repos_url":"https://api.github.com/users/hooroo/repos","events_url":"https://api.github.com/users/hooroo/events{/privacy}","received_events_url":"https://api.github.com/users/hooroo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hooroo/code-snippets","description":"Hooroo Academy breakable project - Jonathan Ly","fork":false,"url":"https://api.github.com/repos/hooroo/code-snippets","forks_url":"https://api.github.com/repos/hooroo/code-snippets/forks","keys_url":"https://api.github.com/repos/hooroo/code-snippets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hooroo/code-snippets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hooroo/code-snippets/teams","hooks_url":"https://api.github.com/repos/hooroo/code-snippets/hooks","issue_events_url":"https://api.github.com/repos/hooroo/code-snippets/issues/events{/number}","events_url":"https://api.github.com/repos/hooroo/code-snippets/events","assignees_url":"https://api.github.com/repos/hooroo/code-snippets/assignees{/user}","branches_url":"https://api.github.com/repos/hooroo/code-snippets/branches{/branch}","tags_url":"https://api.github.com/repos/hooroo/code-snippets/tags","blobs_url":"https://api.github.com/repos/hooroo/code-snippets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hooroo/code-snippets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hooroo/code-snippets/git/refs{/sha}","trees_url":"https://api.github.com/repos/hooroo/code-snippets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hooroo/code-snippets/statuses/{sha}","languages_url":"https://api.github.com/repos/hooroo/code-snippets/languages","stargazers_url":"https://api.github.com/repos/hooroo/code-snippets/stargazers","contributors_url":"https://api.github.com/repos/hooroo/code-snippets/contributors","subscribers_url":"https://api.github.com/repos/hooroo/code-snippets/subscribers","subscription_url":"https://api.github.com/repos/hooroo/code-snippets/subscription","commits_url":"https://api.github.com/repos/hooroo/code-snippets/commits{/sha}","git_commits_url":"https://api.github.com/repos/hooroo/code-snippets/git/commits{/sha}","comments_url":"https://api.github.com/repos/hooroo/code-snippets/comments{/number}","issue_comment_url":"https://api.github.com/repos/hooroo/code-snippets/issues/comments{/number}","contents_url":"https://api.github.com/repos/hooroo/code-snippets/contents/{+path}","compare_url":"https://api.github.com/repos/hooroo/code-snippets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hooroo/code-snippets/merges","archive_url":"https://api.github.com/repos/hooroo/code-snippets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hooroo/code-snippets/downloads","issues_url":"https://api.github.com/repos/hooroo/code-snippets/issues{/number}","pulls_url":"https://api.github.com/repos/hooroo/code-snippets/pulls{/number}","milestones_url":"https://api.github.com/repos/hooroo/code-snippets/milestones{/number}","notifications_url":"https://api.github.com/repos/hooroo/code-snippets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hooroo/code-snippets/labels{/name}","releases_url":"https://api.github.com/repos/hooroo/code-snippets/releases{/id}","deployments_url":"https://api.github.com/repos/hooroo/code-snippets/deployments","created_at":"2017-12-08T02:39:56Z","updated_at":"2018-03-13T00:20:49Z","pushed_at":"2018-03-15T03:28:15Z","git_url":"git://github.com/hooroo/code-snippets.git","ssh_url":"git@github.com:hooroo/code-snippets.git","clone_url":"https://github.com/hooroo/code-snippets.git","svn_url":"https://github.com/hooroo/code-snippets","homepage":null,"size":93,"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":"hooroo:master","ref":"master","sha":"d08db4ffca4aee036d2980106e4443ce2aba4a0e","user":{"login":"hooroo","id":785479,"avatar_url":"https://avatars0.githubusercontent.com/u/785479?v=4","gravatar_id":"","url":"https://api.github.com/users/hooroo","html_url":"https://github.com/hooroo","followers_url":"https://api.github.com/users/hooroo/followers","following_url":"https://api.github.com/users/hooroo/following{/other_user}","gists_url":"https://api.github.com/users/hooroo/gists{/gist_id}","starred_url":"https://api.github.com/users/hooroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooroo/subscriptions","organizations_url":"https://api.github.com/users/hooroo/orgs","repos_url":"https://api.github.com/users/hooroo/repos","events_url":"https://api.github.com/users/hooroo/events{/privacy}","received_events_url":"https://api.github.com/users/hooroo/received_events","type":"Organization","site_admin":false},"repo":{"id":113522534,"name":"code-snippets","full_name":"hooroo/code-snippets","owner":{"login":"hooroo","id":785479,"avatar_url":"https://avatars0.githubusercontent.com/u/785479?v=4","gravatar_id":"","url":"https://api.github.com/users/hooroo","html_url":"https://github.com/hooroo","followers_url":"https://api.github.com/users/hooroo/followers","following_url":"https://api.github.com/users/hooroo/following{/other_user}","gists_url":"https://api.github.com/users/hooroo/gists{/gist_id}","starred_url":"https://api.github.com/users/hooroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooroo/subscriptions","organizations_url":"https://api.github.com/users/hooroo/orgs","repos_url":"https://api.github.com/users/hooroo/repos","events_url":"https://api.github.com/users/hooroo/events{/privacy}","received_events_url":"https://api.github.com/users/hooroo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hooroo/code-snippets","description":"Hooroo Academy breakable project - Jonathan Ly","fork":false,"url":"https://api.github.com/repos/hooroo/code-snippets","forks_url":"https://api.github.com/repos/hooroo/code-snippets/forks","keys_url":"https://api.github.com/repos/hooroo/code-snippets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hooroo/code-snippets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hooroo/code-snippets/teams","hooks_url":"https://api.github.com/repos/hooroo/code-snippets/hooks","issue_events_url":"https://api.github.com/repos/hooroo/code-snippets/issues/events{/number}","events_url":"https://api.github.com/repos/hooroo/code-snippets/events","assignees_url":"https://api.github.com/repos/hooroo/code-snippets/assignees{/user}","branches_url":"https://api.github.com/repos/hooroo/code-snippets/branches{/branch}","tags_url":"https://api.github.com/repos/hooroo/code-snippets/tags","blobs_url":"https://api.github.com/repos/hooroo/code-snippets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hooroo/code-snippets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hooroo/code-snippets/git/refs{/sha}","trees_url":"https://api.github.com/repos/hooroo/code-snippets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hooroo/code-snippets/statuses/{sha}","languages_url":"https://api.github.com/repos/hooroo/code-snippets/languages","stargazers_url":"https://api.github.com/repos/hooroo/code-snippets/stargazers","contributors_url":"https://api.github.com/repos/hooroo/code-snippets/contributors","subscribers_url":"https://api.github.com/repos/hooroo/code-snippets/subscribers","subscription_url":"https://api.github.com/repos/hooroo/code-snippets/subscription","commits_url":"https://api.github.com/repos/hooroo/code-snippets/commits{/sha}","git_commits_url":"https://api.github.com/repos/hooroo/code-snippets/git/commits{/sha}","comments_url":"https://api.github.com/repos/hooroo/code-snippets/comments{/number}","issue_comment_url":"https://api.github.com/repos/hooroo/code-snippets/issues/comments{/number}","contents_url":"https://api.github.com/repos/hooroo/code-snippets/contents/{+path}","compare_url":"https://api.github.com/repos/hooroo/code-snippets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hooroo/code-snippets/merges","archive_url":"https://api.github.com/repos/hooroo/code-snippets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hooroo/code-snippets/downloads","issues_url":"https://api.github.com/repos/hooroo/code-snippets/issues{/number}","pulls_url":"https://api.github.com/repos/hooroo/code-snippets/pulls{/number}","milestones_url":"https://api.github.com/repos/hooroo/code-snippets/milestones{/number}","notifications_url":"https://api.github.com/repos/hooroo/code-snippets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hooroo/code-snippets/labels{/name}","releases_url":"https://api.github.com/repos/hooroo/code-snippets/releases{/id}","deployments_url":"https://api.github.com/repos/hooroo/code-snippets/deployments","created_at":"2017-12-08T02:39:56Z","updated_at":"2018-03-13T00:20:49Z","pushed_at":"2018-03-15T03:28:15Z","git_url":"git://github.com/hooroo/code-snippets.git","ssh_url":"git@github.com:hooroo/code-snippets.git","clone_url":"https://github.com/hooroo/code-snippets.git","svn_url":"https://github.com/hooroo/code-snippets","homepage":null,"size":93,"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/hooroo/code-snippets/pulls/12"},"html":{"href":"https://github.com/hooroo/code-snippets/pull/12"},"issue":{"href":"https://api.github.com/repos/hooroo/code-snippets/issues/12"},"comments":{"href":"https://api.github.com/repos/hooroo/code-snippets/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/hooroo/code-snippets/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/hooroo/code-snippets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hooroo/code-snippets/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/hooroo/code-snippets/statuses/d782f9af29cd2249b16be75924eaa8732c438c4c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jonathanly"}}