{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments/47323954","id":47323954,"diff_hunk":"@@ -0,0 +1,68 @@\n+class AgencyPeopleController < ApplicationController\n+\n+  def new\n+    # THIS CODE IS NOT READY FOR TESTING\n+    @agency = Agency.this_agency(current_user)\n+    @agency_person = AgencyPerson.new\n+  end\n+  \n+  def create\n+    # THIS CODE IS NOT READY FOR TESTING\n+    @agency = Agency.find(params[:agency_id])\n+    @agency_person = AgencyPerson.new\n+    @agency_person.assign_attributes(agency_person_params)\n+    @agency.agency_people << @agency_person\n+    if @agency_person.valid?","path":"app/controllers/agency_people_controller.rb","position":15,"original_position":15,"commit_id":"351629f7aa453616a674e20ad50f2a8b779ae172","original_commit_id":"351629f7aa453616a674e20ad50f2a8b779ae172","user":{"login":"amba178","id":4784688,"avatar_url":"https://avatars.githubusercontent.com/u/4784688?v=3","gravatar_id":"","url":"https://api.github.com/users/amba178","html_url":"https://github.com/amba178","followers_url":"https://api.github.com/users/amba178/followers","following_url":"https://api.github.com/users/amba178/following{/other_user}","gists_url":"https://api.github.com/users/amba178/gists{/gist_id}","starred_url":"https://api.github.com/users/amba178/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amba178/subscriptions","organizations_url":"https://api.github.com/users/amba178/orgs","repos_url":"https://api.github.com/users/amba178/repos","events_url":"https://api.github.com/users/amba178/events{/privacy}","received_events_url":"https://api.github.com/users/amba178/received_events","type":"User","site_admin":false},"body":"you do not need to check if valid?. You can just say if @agency_person.save.","created_at":"2015-12-11T05:58:11Z","updated_at":"2015-12-11T05:58:11Z","html_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/140#discussion_r47323954","pull_request_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments/47323954"},"html":{"href":"https://github.com/AgileVentures/MetPlus_PETS/pull/140#discussion_r47323954"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140","id":53263908,"html_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/140","diff_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/140.diff","patch_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/140.patch","issue_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/140","number":140,"state":"open","locked":false,"title":"Connects to AgileVentures/MetPlus_tracker#129","user":{"login":"patmbolger","id":9968213,"avatar_url":"https://avatars.githubusercontent.com/u/9968213?v=3","gravatar_id":"","url":"https://api.github.com/users/patmbolger","html_url":"https://github.com/patmbolger","followers_url":"https://api.github.com/users/patmbolger/followers","following_url":"https://api.github.com/users/patmbolger/following{/other_user}","gists_url":"https://api.github.com/users/patmbolger/gists{/gist_id}","starred_url":"https://api.github.com/users/patmbolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patmbolger/subscriptions","organizations_url":"https://api.github.com/users/patmbolger/orgs","repos_url":"https://api.github.com/users/patmbolger/repos","events_url":"https://api.github.com/users/patmbolger/events{/privacy}","received_events_url":"https://api.github.com/users/patmbolger/received_events","type":"User","site_admin":false},"body":"Completed agency_people show, edit and update actions.","created_at":"2015-12-10T14:20:45Z","updated_at":"2015-12-11T05:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d817c926748575ff68aacf4acd2eda9883e6d78","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/140/comments","statuses_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/351629f7aa453616a674e20ad50f2a8b779ae172","head":{"label":"patmbolger:edit-agency-people","ref":"edit-agency-people","sha":"351629f7aa453616a674e20ad50f2a8b779ae172","user":{"login":"patmbolger","id":9968213,"avatar_url":"https://avatars.githubusercontent.com/u/9968213?v=3","gravatar_id":"","url":"https://api.github.com/users/patmbolger","html_url":"https://github.com/patmbolger","followers_url":"https://api.github.com/users/patmbolger/followers","following_url":"https://api.github.com/users/patmbolger/following{/other_user}","gists_url":"https://api.github.com/users/patmbolger/gists{/gist_id}","starred_url":"https://api.github.com/users/patmbolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patmbolger/subscriptions","organizations_url":"https://api.github.com/users/patmbolger/orgs","repos_url":"https://api.github.com/users/patmbolger/repos","events_url":"https://api.github.com/users/patmbolger/events{/privacy}","received_events_url":"https://api.github.com/users/patmbolger/received_events","type":"User","site_admin":false},"repo":{"id":42128421,"name":"MetPlus_PETS","full_name":"patmbolger/MetPlus_PETS","owner":{"login":"patmbolger","id":9968213,"avatar_url":"https://avatars.githubusercontent.com/u/9968213?v=3","gravatar_id":"","url":"https://api.github.com/users/patmbolger","html_url":"https://github.com/patmbolger","followers_url":"https://api.github.com/users/patmbolger/followers","following_url":"https://api.github.com/users/patmbolger/following{/other_user}","gists_url":"https://api.github.com/users/patmbolger/gists{/gist_id}","starred_url":"https://api.github.com/users/patmbolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patmbolger/subscriptions","organizations_url":"https://api.github.com/users/patmbolger/orgs","repos_url":"https://api.github.com/users/patmbolger/repos","events_url":"https://api.github.com/users/patmbolger/events{/privacy}","received_events_url":"https://api.github.com/users/patmbolger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patmbolger/MetPlus_PETS","description":"Front End for the MetPlus project","fork":true,"url":"https://api.github.com/repos/patmbolger/MetPlus_PETS","forks_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/forks","keys_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/teams","hooks_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/hooks","issue_events_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/issues/events{/number}","events_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/events","assignees_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/assignees{/user}","branches_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/branches{/branch}","tags_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/tags","blobs_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/git/refs{/sha}","trees_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/statuses/{sha}","languages_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/languages","stargazers_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/stargazers","contributors_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/contributors","subscribers_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/subscribers","subscription_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/subscription","commits_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/commits{/sha}","git_commits_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/git/commits{/sha}","comments_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/comments{/number}","issue_comment_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/issues/comments{/number}","contents_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/contents/{+path}","compare_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/merges","archive_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/downloads","issues_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/issues{/number}","pulls_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/pulls{/number}","milestones_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/milestones{/number}","notifications_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/labels{/name}","releases_url":"https://api.github.com/repos/patmbolger/MetPlus_PETS/releases{/id}","created_at":"2015-09-08T17:37:16Z","updated_at":"2015-09-08T17:37:17Z","pushed_at":"2015-12-10T14:09:08Z","git_url":"git://github.com/patmbolger/MetPlus_PETS.git","ssh_url":"git@github.com:patmbolger/MetPlus_PETS.git","clone_url":"https://github.com/patmbolger/MetPlus_PETS.git","svn_url":"https://github.com/patmbolger/MetPlus_PETS","homepage":null,"size":387,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AgileVentures:development","ref":"development","sha":"da5ad16e9323fd656feb889e71eb32549f2854d2","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":41921394,"name":"MetPlus_PETS","full_name":"AgileVentures/MetPlus_PETS","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/MetPlus_PETS","description":"Front End for the MetPlus project","fork":false,"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS","forks_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/forks","keys_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/teams","hooks_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/events","assignees_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/tags","blobs_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/subscription","commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/merges","archive_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/downloads","issues_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/releases{/id}","created_at":"2015-09-04T14:51:35Z","updated_at":"2015-09-04T15:28:43Z","pushed_at":"2015-12-10T14:20:45Z","git_url":"git://github.com/AgileVentures/MetPlus_PETS.git","ssh_url":"git@github.com:AgileVentures/MetPlus_PETS.git","clone_url":"https://github.com/AgileVentures/MetPlus_PETS.git","svn_url":"https://github.com/AgileVentures/MetPlus_PETS","homepage":null,"size":398,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140"},"html":{"href":"https://github.com/AgileVentures/MetPlus_PETS/pull/140"},"issue":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/140"},"comments":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/351629f7aa453616a674e20ad50f2a8b779ae172"}}}}