{"action":"created","comment":{"url":"https://api.github.com/repos/adfink/dinner_dash/pulls/comments/33109325","id":33109325,"diff_hunk":"@@ -8,4 +8,8 @@ class User < ActiveRecord::Base\n   has_many :orders\n \n   enum role: %w(default admin)\n+\n+  def name\n+    self.display_name == \"\" ? self.full_name : self.display_name","path":"app/models/user.rb","position":6,"original_position":6,"commit_id":"efc8b3400596fb1573f40f5cdfd5cace49f60c42","original_commit_id":"efc8b3400596fb1573f40f5cdfd5cace49f60c42","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Redundant `self` detected.","created_at":"2015-06-24T00:59:45Z","updated_at":"2015-06-24T00:59:45Z","html_url":"https://github.com/adfink/dinner_dash/pull/79#discussion_r33109325","pull_request_url":"https://api.github.com/repos/adfink/dinner_dash/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/adfink/dinner_dash/pulls/comments/33109325"},"html":{"href":"https://github.com/adfink/dinner_dash/pull/79#discussion_r33109325"},"pull_request":{"href":"https://api.github.com/repos/adfink/dinner_dash/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/adfink/dinner_dash/pulls/79","id":38398640,"html_url":"https://github.com/adfink/dinner_dash/pull/79","diff_url":"https://github.com/adfink/dinner_dash/pull/79.diff","patch_url":"https://github.com/adfink/dinner_dash/pull/79.patch","issue_url":"https://api.github.com/repos/adfink/dinner_dash/issues/79","number":79,"state":"open","locked":false,"title":"Admin edit user","user":{"login":"brettgrigsby","id":8657755,"avatar_url":"https://avatars.githubusercontent.com/u/8657755?v=3","gravatar_id":"","url":"https://api.github.com/users/brettgrigsby","html_url":"https://github.com/brettgrigsby","followers_url":"https://api.github.com/users/brettgrigsby/followers","following_url":"https://api.github.com/users/brettgrigsby/following{/other_user}","gists_url":"https://api.github.com/users/brettgrigsby/gists{/gist_id}","starred_url":"https://api.github.com/users/brettgrigsby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettgrigsby/subscriptions","organizations_url":"https://api.github.com/users/brettgrigsby/orgs","repos_url":"https://api.github.com/users/brettgrigsby/repos","events_url":"https://api.github.com/users/brettgrigsby/events{/privacy}","received_events_url":"https://api.github.com/users/brettgrigsby/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-24T00:59:36Z","updated_at":"2015-06-24T00:59:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3172fadea2ba3cf4129da52fcd5a218850f565f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adfink/dinner_dash/pulls/79/commits","review_comments_url":"https://api.github.com/repos/adfink/dinner_dash/pulls/79/comments","review_comment_url":"https://api.github.com/repos/adfink/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adfink/dinner_dash/issues/79/comments","statuses_url":"https://api.github.com/repos/adfink/dinner_dash/statuses/efc8b3400596fb1573f40f5cdfd5cace49f60c42","head":{"label":"adfink:admin_edit_user","ref":"admin_edit_user","sha":"efc8b3400596fb1573f40f5cdfd5cace49f60c42","user":{"login":"adfink","id":10395328,"avatar_url":"https://avatars.githubusercontent.com/u/10395328?v=3","gravatar_id":"","url":"https://api.github.com/users/adfink","html_url":"https://github.com/adfink","followers_url":"https://api.github.com/users/adfink/followers","following_url":"https://api.github.com/users/adfink/following{/other_user}","gists_url":"https://api.github.com/users/adfink/gists{/gist_id}","starred_url":"https://api.github.com/users/adfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adfink/subscriptions","organizations_url":"https://api.github.com/users/adfink/orgs","repos_url":"https://api.github.com/users/adfink/repos","events_url":"https://api.github.com/users/adfink/events{/privacy}","received_events_url":"https://api.github.com/users/adfink/received_events","type":"User","site_admin":false},"repo":{"id":37473820,"name":"dinner_dash","full_name":"adfink/dinner_dash","owner":{"login":"adfink","id":10395328,"avatar_url":"https://avatars.githubusercontent.com/u/10395328?v=3","gravatar_id":"","url":"https://api.github.com/users/adfink","html_url":"https://github.com/adfink","followers_url":"https://api.github.com/users/adfink/followers","following_url":"https://api.github.com/users/adfink/following{/other_user}","gists_url":"https://api.github.com/users/adfink/gists{/gist_id}","starred_url":"https://api.github.com/users/adfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adfink/subscriptions","organizations_url":"https://api.github.com/users/adfink/orgs","repos_url":"https://api.github.com/users/adfink/repos","events_url":"https://api.github.com/users/adfink/events{/privacy}","received_events_url":"https://api.github.com/users/adfink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adfink/dinner_dash","description":null,"fork":false,"url":"https://api.github.com/repos/adfink/dinner_dash","forks_url":"https://api.github.com/repos/adfink/dinner_dash/forks","keys_url":"https://api.github.com/repos/adfink/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adfink/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adfink/dinner_dash/teams","hooks_url":"https://api.github.com/repos/adfink/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/adfink/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/adfink/dinner_dash/events","assignees_url":"https://api.github.com/repos/adfink/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/adfink/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/adfink/dinner_dash/tags","blobs_url":"https://api.github.com/repos/adfink/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adfink/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adfink/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/adfink/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adfink/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/adfink/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/adfink/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/adfink/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/adfink/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/adfink/dinner_dash/subscription","commits_url":"https://api.github.com/repos/adfink/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/adfink/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/adfink/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/adfink/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/adfink/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/adfink/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adfink/dinner_dash/merges","archive_url":"https://api.github.com/repos/adfink/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adfink/dinner_dash/downloads","issues_url":"https://api.github.com/repos/adfink/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/adfink/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/adfink/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/adfink/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adfink/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/adfink/dinner_dash/releases{/id}","created_at":"2015-06-15T15:29:28Z","updated_at":"2015-06-15T15:30:37Z","pushed_at":"2015-06-24T00:59:37Z","git_url":"git://github.com/adfink/dinner_dash.git","ssh_url":"git@github.com:adfink/dinner_dash.git","clone_url":"https://github.com/adfink/dinner_dash.git","svn_url":"https://github.com/adfink/dinner_dash","homepage":null,"size":3724,"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":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"adfink:master","ref":"master","sha":"26d71852e3295dc8cb37552ae9891ecb359d74f3","user":{"login":"adfink","id":10395328,"avatar_url":"https://avatars.githubusercontent.com/u/10395328?v=3","gravatar_id":"","url":"https://api.github.com/users/adfink","html_url":"https://github.com/adfink","followers_url":"https://api.github.com/users/adfink/followers","following_url":"https://api.github.com/users/adfink/following{/other_user}","gists_url":"https://api.github.com/users/adfink/gists{/gist_id}","starred_url":"https://api.github.com/users/adfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adfink/subscriptions","organizations_url":"https://api.github.com/users/adfink/orgs","repos_url":"https://api.github.com/users/adfink/repos","events_url":"https://api.github.com/users/adfink/events{/privacy}","received_events_url":"https://api.github.com/users/adfink/received_events","type":"User","site_admin":false},"repo":{"id":37473820,"name":"dinner_dash","full_name":"adfink/dinner_dash","owner":{"login":"adfink","id":10395328,"avatar_url":"https://avatars.githubusercontent.com/u/10395328?v=3","gravatar_id":"","url":"https://api.github.com/users/adfink","html_url":"https://github.com/adfink","followers_url":"https://api.github.com/users/adfink/followers","following_url":"https://api.github.com/users/adfink/following{/other_user}","gists_url":"https://api.github.com/users/adfink/gists{/gist_id}","starred_url":"https://api.github.com/users/adfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adfink/subscriptions","organizations_url":"https://api.github.com/users/adfink/orgs","repos_url":"https://api.github.com/users/adfink/repos","events_url":"https://api.github.com/users/adfink/events{/privacy}","received_events_url":"https://api.github.com/users/adfink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adfink/dinner_dash","description":null,"fork":false,"url":"https://api.github.com/repos/adfink/dinner_dash","forks_url":"https://api.github.com/repos/adfink/dinner_dash/forks","keys_url":"https://api.github.com/repos/adfink/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adfink/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adfink/dinner_dash/teams","hooks_url":"https://api.github.com/repos/adfink/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/adfink/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/adfink/dinner_dash/events","assignees_url":"https://api.github.com/repos/adfink/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/adfink/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/adfink/dinner_dash/tags","blobs_url":"https://api.github.com/repos/adfink/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adfink/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adfink/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/adfink/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adfink/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/adfink/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/adfink/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/adfink/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/adfink/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/adfink/dinner_dash/subscription","commits_url":"https://api.github.com/repos/adfink/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/adfink/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/adfink/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/adfink/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/adfink/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/adfink/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adfink/dinner_dash/merges","archive_url":"https://api.github.com/repos/adfink/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adfink/dinner_dash/downloads","issues_url":"https://api.github.com/repos/adfink/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/adfink/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/adfink/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/adfink/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adfink/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/adfink/dinner_dash/releases{/id}","created_at":"2015-06-15T15:29:28Z","updated_at":"2015-06-15T15:30:37Z","pushed_at":"2015-06-24T00:59:37Z","git_url":"git://github.com/adfink/dinner_dash.git","ssh_url":"git@github.com:adfink/dinner_dash.git","clone_url":"https://github.com/adfink/dinner_dash.git","svn_url":"https://github.com/adfink/dinner_dash","homepage":null,"size":3724,"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":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adfink/dinner_dash/pulls/79"},"html":{"href":"https://github.com/adfink/dinner_dash/pull/79"},"issue":{"href":"https://api.github.com/repos/adfink/dinner_dash/issues/79"},"comments":{"href":"https://api.github.com/repos/adfink/dinner_dash/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/adfink/dinner_dash/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/adfink/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adfink/dinner_dash/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/adfink/dinner_dash/statuses/efc8b3400596fb1573f40f5cdfd5cace49f60c42"}}}}