{"action":"created","comment":{"url":"https://api.github.com/repos/ttriggs/never-again/pulls/comments/27592905","id":27592905,"diff_hunk":"@@ -17,4 +17,7 @@ class Restaurant < ActiveRecord::Base\n                       length: { minimum: 3, maximum: 40 }\n \n #validate name & address for scope\n+  def owner?(current_user)\n+    self.user == current_user","path":"app/models/restaurant.rb","position":5,"original_position":5,"commit_id":"140cd501811cba0dd67e4194c8bb2108f4886434","original_commit_id":"140cd501811cba0dd67e4194c8bb2108f4886434","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-01T17:49:30Z","updated_at":"2015-04-01T17:49:30Z","html_url":"https://github.com/ttriggs/never-again/pull/5#discussion_r27592905","pull_request_url":"https://api.github.com/repos/ttriggs/never-again/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ttriggs/never-again/pulls/comments/27592905"},"html":{"href":"https://github.com/ttriggs/never-again/pull/5#discussion_r27592905"},"pull_request":{"href":"https://api.github.com/repos/ttriggs/never-again/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ttriggs/never-again/pulls/5","id":32442826,"html_url":"https://github.com/ttriggs/never-again/pull/5","diff_url":"https://github.com/ttriggs/never-again/pull/5.diff","patch_url":"https://github.com/ttriggs/never-again/pull/5.patch","issue_url":"https://api.github.com/repos/ttriggs/never-again/issues/5","number":5,"state":"open","locked":false,"title":"rfr - restaurant features added","user":{"login":"ttriggs","id":8800899,"avatar_url":"https://avatars.githubusercontent.com/u/8800899?v=3","gravatar_id":"","url":"https://api.github.com/users/ttriggs","html_url":"https://github.com/ttriggs","followers_url":"https://api.github.com/users/ttriggs/followers","following_url":"https://api.github.com/users/ttriggs/following{/other_user}","gists_url":"https://api.github.com/users/ttriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/ttriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttriggs/subscriptions","organizations_url":"https://api.github.com/users/ttriggs/orgs","repos_url":"https://api.github.com/users/ttriggs/repos","events_url":"https://api.github.com/users/ttriggs/events{/privacy}","received_events_url":"https://api.github.com/users/ttriggs/received_events","type":"User","site_admin":false},"body":"reviews & user tests still not implimented","created_at":"2015-04-01T17:49:24Z","updated_at":"2015-04-01T17:49:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbb153c35e754f56b4a67e7f2510fd200996df93","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ttriggs/never-again/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ttriggs/never-again/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ttriggs/never-again/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ttriggs/never-again/issues/5/comments","statuses_url":"https://api.github.com/repos/ttriggs/never-again/statuses/140cd501811cba0dd67e4194c8bb2108f4886434","head":{"label":"ttriggs:rfr-tt-build-restaurant-features","ref":"rfr-tt-build-restaurant-features","sha":"140cd501811cba0dd67e4194c8bb2108f4886434","user":{"login":"ttriggs","id":8800899,"avatar_url":"https://avatars.githubusercontent.com/u/8800899?v=3","gravatar_id":"","url":"https://api.github.com/users/ttriggs","html_url":"https://github.com/ttriggs","followers_url":"https://api.github.com/users/ttriggs/followers","following_url":"https://api.github.com/users/ttriggs/following{/other_user}","gists_url":"https://api.github.com/users/ttriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/ttriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttriggs/subscriptions","organizations_url":"https://api.github.com/users/ttriggs/orgs","repos_url":"https://api.github.com/users/ttriggs/repos","events_url":"https://api.github.com/users/ttriggs/events{/privacy}","received_events_url":"https://api.github.com/users/ttriggs/received_events","type":"User","site_admin":false},"repo":{"id":33147031,"name":"never-again","full_name":"ttriggs/never-again","owner":{"login":"ttriggs","id":8800899,"avatar_url":"https://avatars.githubusercontent.com/u/8800899?v=3","gravatar_id":"","url":"https://api.github.com/users/ttriggs","html_url":"https://github.com/ttriggs","followers_url":"https://api.github.com/users/ttriggs/followers","following_url":"https://api.github.com/users/ttriggs/following{/other_user}","gists_url":"https://api.github.com/users/ttriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/ttriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttriggs/subscriptions","organizations_url":"https://api.github.com/users/ttriggs/orgs","repos_url":"https://api.github.com/users/ttriggs/repos","events_url":"https://api.github.com/users/ttriggs/events{/privacy}","received_events_url":"https://api.github.com/users/ttriggs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttriggs/never-again","description":"A Yelp-esque app to catalog your worst dining experiences.","fork":false,"url":"https://api.github.com/repos/ttriggs/never-again","forks_url":"https://api.github.com/repos/ttriggs/never-again/forks","keys_url":"https://api.github.com/repos/ttriggs/never-again/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttriggs/never-again/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttriggs/never-again/teams","hooks_url":"https://api.github.com/repos/ttriggs/never-again/hooks","issue_events_url":"https://api.github.com/repos/ttriggs/never-again/issues/events{/number}","events_url":"https://api.github.com/repos/ttriggs/never-again/events","assignees_url":"https://api.github.com/repos/ttriggs/never-again/assignees{/user}","branches_url":"https://api.github.com/repos/ttriggs/never-again/branches{/branch}","tags_url":"https://api.github.com/repos/ttriggs/never-again/tags","blobs_url":"https://api.github.com/repos/ttriggs/never-again/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttriggs/never-again/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttriggs/never-again/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttriggs/never-again/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttriggs/never-again/statuses/{sha}","languages_url":"https://api.github.com/repos/ttriggs/never-again/languages","stargazers_url":"https://api.github.com/repos/ttriggs/never-again/stargazers","contributors_url":"https://api.github.com/repos/ttriggs/never-again/contributors","subscribers_url":"https://api.github.com/repos/ttriggs/never-again/subscribers","subscription_url":"https://api.github.com/repos/ttriggs/never-again/subscription","commits_url":"https://api.github.com/repos/ttriggs/never-again/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttriggs/never-again/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttriggs/never-again/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttriggs/never-again/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttriggs/never-again/contents/{+path}","compare_url":"https://api.github.com/repos/ttriggs/never-again/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttriggs/never-again/merges","archive_url":"https://api.github.com/repos/ttriggs/never-again/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttriggs/never-again/downloads","issues_url":"https://api.github.com/repos/ttriggs/never-again/issues{/number}","pulls_url":"https://api.github.com/repos/ttriggs/never-again/pulls{/number}","milestones_url":"https://api.github.com/repos/ttriggs/never-again/milestones{/number}","notifications_url":"https://api.github.com/repos/ttriggs/never-again/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttriggs/never-again/labels{/name}","releases_url":"https://api.github.com/repos/ttriggs/never-again/releases{/id}","created_at":"2015-03-30T20:42:54Z","updated_at":"2015-04-01T14:29:27Z","pushed_at":"2015-04-01T17:49:25Z","git_url":"git://github.com/ttriggs/never-again.git","ssh_url":"git@github.com:ttriggs/never-again.git","clone_url":"https://github.com/ttriggs/never-again.git","svn_url":"https://github.com/ttriggs/never-again","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ttriggs:master","ref":"master","sha":"d88b6c90f3c9631e2c2b95d56a5ac3d1e9ba95b2","user":{"login":"ttriggs","id":8800899,"avatar_url":"https://avatars.githubusercontent.com/u/8800899?v=3","gravatar_id":"","url":"https://api.github.com/users/ttriggs","html_url":"https://github.com/ttriggs","followers_url":"https://api.github.com/users/ttriggs/followers","following_url":"https://api.github.com/users/ttriggs/following{/other_user}","gists_url":"https://api.github.com/users/ttriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/ttriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttriggs/subscriptions","organizations_url":"https://api.github.com/users/ttriggs/orgs","repos_url":"https://api.github.com/users/ttriggs/repos","events_url":"https://api.github.com/users/ttriggs/events{/privacy}","received_events_url":"https://api.github.com/users/ttriggs/received_events","type":"User","site_admin":false},"repo":{"id":33147031,"name":"never-again","full_name":"ttriggs/never-again","owner":{"login":"ttriggs","id":8800899,"avatar_url":"https://avatars.githubusercontent.com/u/8800899?v=3","gravatar_id":"","url":"https://api.github.com/users/ttriggs","html_url":"https://github.com/ttriggs","followers_url":"https://api.github.com/users/ttriggs/followers","following_url":"https://api.github.com/users/ttriggs/following{/other_user}","gists_url":"https://api.github.com/users/ttriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/ttriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttriggs/subscriptions","organizations_url":"https://api.github.com/users/ttriggs/orgs","repos_url":"https://api.github.com/users/ttriggs/repos","events_url":"https://api.github.com/users/ttriggs/events{/privacy}","received_events_url":"https://api.github.com/users/ttriggs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttriggs/never-again","description":"A Yelp-esque app to catalog your worst dining experiences.","fork":false,"url":"https://api.github.com/repos/ttriggs/never-again","forks_url":"https://api.github.com/repos/ttriggs/never-again/forks","keys_url":"https://api.github.com/repos/ttriggs/never-again/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttriggs/never-again/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttriggs/never-again/teams","hooks_url":"https://api.github.com/repos/ttriggs/never-again/hooks","issue_events_url":"https://api.github.com/repos/ttriggs/never-again/issues/events{/number}","events_url":"https://api.github.com/repos/ttriggs/never-again/events","assignees_url":"https://api.github.com/repos/ttriggs/never-again/assignees{/user}","branches_url":"https://api.github.com/repos/ttriggs/never-again/branches{/branch}","tags_url":"https://api.github.com/repos/ttriggs/never-again/tags","blobs_url":"https://api.github.com/repos/ttriggs/never-again/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttriggs/never-again/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttriggs/never-again/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttriggs/never-again/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttriggs/never-again/statuses/{sha}","languages_url":"https://api.github.com/repos/ttriggs/never-again/languages","stargazers_url":"https://api.github.com/repos/ttriggs/never-again/stargazers","contributors_url":"https://api.github.com/repos/ttriggs/never-again/contributors","subscribers_url":"https://api.github.com/repos/ttriggs/never-again/subscribers","subscription_url":"https://api.github.com/repos/ttriggs/never-again/subscription","commits_url":"https://api.github.com/repos/ttriggs/never-again/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttriggs/never-again/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttriggs/never-again/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttriggs/never-again/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttriggs/never-again/contents/{+path}","compare_url":"https://api.github.com/repos/ttriggs/never-again/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttriggs/never-again/merges","archive_url":"https://api.github.com/repos/ttriggs/never-again/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttriggs/never-again/downloads","issues_url":"https://api.github.com/repos/ttriggs/never-again/issues{/number}","pulls_url":"https://api.github.com/repos/ttriggs/never-again/pulls{/number}","milestones_url":"https://api.github.com/repos/ttriggs/never-again/milestones{/number}","notifications_url":"https://api.github.com/repos/ttriggs/never-again/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttriggs/never-again/labels{/name}","releases_url":"https://api.github.com/repos/ttriggs/never-again/releases{/id}","created_at":"2015-03-30T20:42:54Z","updated_at":"2015-04-01T14:29:27Z","pushed_at":"2015-04-01T17:49:25Z","git_url":"git://github.com/ttriggs/never-again.git","ssh_url":"git@github.com:ttriggs/never-again.git","clone_url":"https://github.com/ttriggs/never-again.git","svn_url":"https://github.com/ttriggs/never-again","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ttriggs/never-again/pulls/5"},"html":{"href":"https://github.com/ttriggs/never-again/pull/5"},"issue":{"href":"https://api.github.com/repos/ttriggs/never-again/issues/5"},"comments":{"href":"https://api.github.com/repos/ttriggs/never-again/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ttriggs/never-again/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ttriggs/never-again/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ttriggs/never-again/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ttriggs/never-again/statuses/140cd501811cba0dd67e4194c8bb2108f4886434"}}}}