{"action":"created","comment":{"url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments/27818864","id":27818864,"diff_hunk":"@@ -2,6 +2,18 @@ class User < ActiveRecord::Base\n   has_many :neighborhoods\n   has_many :reviews\n \n+  ROLES = %w(member admin)\n+\n+  validates :role, presence: true, inclusion: { in: ROLES }\n+\n   devise :database_authenticatable, :registerable,\n          :recoverable, :rememberable, :trackable, :validatable\n+\n+  def admin?\n+    self.role == 'admin'","path":"app/models/user.rb","position":12,"original_position":12,"commit_id":"eae4d8fc72255f0fac7138fa28ecc7879f305391","original_commit_id":"eae4d8fc72255f0fac7138fa28ecc7879f305391","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-04-06T18:43:29Z","updated_at":"2015-04-06T18:43:29Z","html_url":"https://github.com/lizmorr/Neighborgood/pull/17#discussion_r27818864","pull_request_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments/27818864"},"html":{"href":"https://github.com/lizmorr/Neighborgood/pull/17#discussion_r27818864"},"pull_request":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17","id":32699728,"html_url":"https://github.com/lizmorr/Neighborgood/pull/17","diff_url":"https://github.com/lizmorr/Neighborgood/pull/17.diff","patch_url":"https://github.com/lizmorr/Neighborgood/pull/17.patch","issue_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/17","number":17,"state":"open","locked":false,"title":"WIP Ts namespacing","user":{"login":"ectomorph314","id":10256410,"avatar_url":"https://avatars.githubusercontent.com/u/10256410?v=3","gravatar_id":"","url":"https://api.github.com/users/ectomorph314","html_url":"https://github.com/ectomorph314","followers_url":"https://api.github.com/users/ectomorph314/followers","following_url":"https://api.github.com/users/ectomorph314/following{/other_user}","gists_url":"https://api.github.com/users/ectomorph314/gists{/gist_id}","starred_url":"https://api.github.com/users/ectomorph314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ectomorph314/subscriptions","organizations_url":"https://api.github.com/users/ectomorph314/orgs","repos_url":"https://api.github.com/users/ectomorph314/repos","events_url":"https://api.github.com/users/ectomorph314/events{/privacy}","received_events_url":"https://api.github.com/users/ectomorph314/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-06T18:43:24Z","updated_at":"2015-04-06T18:43:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e9bc25a35fb567d575eaf60610f9ca9cb0d2db1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17/commits","review_comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17/comments","review_comment_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/17/comments","statuses_url":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/eae4d8fc72255f0fac7138fa28ecc7879f305391","head":{"label":"lizmorr:ts-namespacing","ref":"ts-namespacing","sha":"eae4d8fc72255f0fac7138fa28ecc7879f305391","user":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"repo":{"id":33186220,"name":"Neighborgood","full_name":"lizmorr/Neighborgood","owner":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lizmorr/Neighborgood","description":"Launch Academy Group project - reviewing neighborhoods in Boston!","fork":false,"url":"https://api.github.com/repos/lizmorr/Neighborgood","forks_url":"https://api.github.com/repos/lizmorr/Neighborgood/forks","keys_url":"https://api.github.com/repos/lizmorr/Neighborgood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lizmorr/Neighborgood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lizmorr/Neighborgood/teams","hooks_url":"https://api.github.com/repos/lizmorr/Neighborgood/hooks","issue_events_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/events{/number}","events_url":"https://api.github.com/repos/lizmorr/Neighborgood/events","assignees_url":"https://api.github.com/repos/lizmorr/Neighborgood/assignees{/user}","branches_url":"https://api.github.com/repos/lizmorr/Neighborgood/branches{/branch}","tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/tags","blobs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/refs{/sha}","trees_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/{sha}","languages_url":"https://api.github.com/repos/lizmorr/Neighborgood/languages","stargazers_url":"https://api.github.com/repos/lizmorr/Neighborgood/stargazers","contributors_url":"https://api.github.com/repos/lizmorr/Neighborgood/contributors","subscribers_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscribers","subscription_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscription","commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/commits{/sha}","git_commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/commits{/sha}","comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/comments{/number}","issue_comment_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/comments{/number}","contents_url":"https://api.github.com/repos/lizmorr/Neighborgood/contents/{+path}","compare_url":"https://api.github.com/repos/lizmorr/Neighborgood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lizmorr/Neighborgood/merges","archive_url":"https://api.github.com/repos/lizmorr/Neighborgood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lizmorr/Neighborgood/downloads","issues_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues{/number}","pulls_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls{/number}","milestones_url":"https://api.github.com/repos/lizmorr/Neighborgood/milestones{/number}","notifications_url":"https://api.github.com/repos/lizmorr/Neighborgood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lizmorr/Neighborgood/labels{/name}","releases_url":"https://api.github.com/repos/lizmorr/Neighborgood/releases{/id}","created_at":"2015-03-31T13:13:33Z","updated_at":"2015-04-03T21:37:11Z","pushed_at":"2015-04-06T18:43:24Z","git_url":"git://github.com/lizmorr/Neighborgood.git","ssh_url":"git@github.com:lizmorr/Neighborgood.git","clone_url":"https://github.com/lizmorr/Neighborgood.git","svn_url":"https://github.com/lizmorr/Neighborgood","homepage":null,"size":2784,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"lizmorr:master","ref":"master","sha":"05933319ee4eb901dc350830a85374d7d00e74c0","user":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"repo":{"id":33186220,"name":"Neighborgood","full_name":"lizmorr/Neighborgood","owner":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lizmorr/Neighborgood","description":"Launch Academy Group project - reviewing neighborhoods in Boston!","fork":false,"url":"https://api.github.com/repos/lizmorr/Neighborgood","forks_url":"https://api.github.com/repos/lizmorr/Neighborgood/forks","keys_url":"https://api.github.com/repos/lizmorr/Neighborgood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lizmorr/Neighborgood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lizmorr/Neighborgood/teams","hooks_url":"https://api.github.com/repos/lizmorr/Neighborgood/hooks","issue_events_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/events{/number}","events_url":"https://api.github.com/repos/lizmorr/Neighborgood/events","assignees_url":"https://api.github.com/repos/lizmorr/Neighborgood/assignees{/user}","branches_url":"https://api.github.com/repos/lizmorr/Neighborgood/branches{/branch}","tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/tags","blobs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/refs{/sha}","trees_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/{sha}","languages_url":"https://api.github.com/repos/lizmorr/Neighborgood/languages","stargazers_url":"https://api.github.com/repos/lizmorr/Neighborgood/stargazers","contributors_url":"https://api.github.com/repos/lizmorr/Neighborgood/contributors","subscribers_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscribers","subscription_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscription","commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/commits{/sha}","git_commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/commits{/sha}","comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/comments{/number}","issue_comment_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/comments{/number}","contents_url":"https://api.github.com/repos/lizmorr/Neighborgood/contents/{+path}","compare_url":"https://api.github.com/repos/lizmorr/Neighborgood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lizmorr/Neighborgood/merges","archive_url":"https://api.github.com/repos/lizmorr/Neighborgood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lizmorr/Neighborgood/downloads","issues_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues{/number}","pulls_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls{/number}","milestones_url":"https://api.github.com/repos/lizmorr/Neighborgood/milestones{/number}","notifications_url":"https://api.github.com/repos/lizmorr/Neighborgood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lizmorr/Neighborgood/labels{/name}","releases_url":"https://api.github.com/repos/lizmorr/Neighborgood/releases{/id}","created_at":"2015-03-31T13:13:33Z","updated_at":"2015-04-03T21:37:11Z","pushed_at":"2015-04-06T18:43:24Z","git_url":"git://github.com/lizmorr/Neighborgood.git","ssh_url":"git@github.com:lizmorr/Neighborgood.git","clone_url":"https://github.com/lizmorr/Neighborgood.git","svn_url":"https://github.com/lizmorr/Neighborgood","homepage":null,"size":2784,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17"},"html":{"href":"https://github.com/lizmorr/Neighborgood/pull/17"},"issue":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/issues/17"},"comments":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/eae4d8fc72255f0fac7138fa28ecc7879f305391"}}}}