{"action":"created","comment":{"url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments/29210236","id":29210236,"diff_hunk":"@@ -7,4 +7,11 @@ def destroy\n     Company.find(params[:id]).destroy\n     redirect_to admin_dashboard_index_path\n   end\n+\n+  def update\n+    company = Company.find(params[:id])\n+    company.update(status: params[:company][:status])\n+    company.save","path":"app/controllers/admin/companies_controller.rb","position":8,"original_position":8,"commit_id":"c669d853ddb4a4c6f7a1fbd0eb01b2615ee9ce91","original_commit_id":"c669d853ddb4a4c6f7a1fbd0eb01b2615ee9ce91","user":{"login":"KristaANelson","id":8313881,"avatar_url":"https://avatars.githubusercontent.com/u/8313881?v=3","gravatar_id":"","url":"https://api.github.com/users/KristaANelson","html_url":"https://github.com/KristaANelson","followers_url":"https://api.github.com/users/KristaANelson/followers","following_url":"https://api.github.com/users/KristaANelson/following{/other_user}","gists_url":"https://api.github.com/users/KristaANelson/gists{/gist_id}","starred_url":"https://api.github.com/users/KristaANelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristaANelson/subscriptions","organizations_url":"https://api.github.com/users/KristaANelson/orgs","repos_url":"https://api.github.com/users/KristaANelson/repos","events_url":"https://api.github.com/users/KristaANelson/events{/privacy}","received_events_url":"https://api.github.com/users/KristaANelson/received_events","type":"User","site_admin":false},"body":"I think that is a pretty safe bet that we don't need a conditional. I just tried to brainstorm any reason why it would fail and I can't think of any? If we make any changes to allow for an update on anything else besides the status, then we can add in a conditional as fit. ","created_at":"2015-04-28T02:29:43Z","updated_at":"2015-04-28T02:29:43Z","html_url":"https://github.com/oorion/opportunity_at_work/pull/18#discussion_r29210236","pull_request_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments/29210236"},"html":{"href":"https://github.com/oorion/opportunity_at_work/pull/18#discussion_r29210236"},"pull_request":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18","id":34210077,"html_url":"https://github.com/oorion/opportunity_at_work/pull/18","diff_url":"https://github.com/oorion/opportunity_at_work/pull/18.diff","patch_url":"https://github.com/oorion/opportunity_at_work/pull/18.patch","issue_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/18","number":18,"state":"open","locked":false,"title":"Add update action to admin company controllers","user":{"login":"laurawhalin","id":8449527,"avatar_url":"https://avatars.githubusercontent.com/u/8449527?v=3","gravatar_id":"","url":"https://api.github.com/users/laurawhalin","html_url":"https://github.com/laurawhalin","followers_url":"https://api.github.com/users/laurawhalin/followers","following_url":"https://api.github.com/users/laurawhalin/following{/other_user}","gists_url":"https://api.github.com/users/laurawhalin/gists{/gist_id}","starred_url":"https://api.github.com/users/laurawhalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurawhalin/subscriptions","organizations_url":"https://api.github.com/users/laurawhalin/orgs","repos_url":"https://api.github.com/users/laurawhalin/repos","events_url":"https://api.github.com/users/laurawhalin/events{/privacy}","received_events_url":"https://api.github.com/users/laurawhalin/received_events","type":"User","site_admin":false},"body":"added update action to admin company controllers with feature test and controller test.","created_at":"2015-04-27T21:03:40Z","updated_at":"2015-04-28T02:29:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"671b3d6e64133e7f934f756f80dec524116145a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18/commits","review_comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18/comments","review_comment_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/18/comments","statuses_url":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/c669d853ddb4a4c6f7a1fbd0eb01b2615ee9ce91","head":{"label":"oorion:update-admin-company","ref":"update-admin-company","sha":"c669d853ddb4a4c6f7a1fbd0eb01b2615ee9ce91","user":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"repo":{"id":34225645,"name":"opportunity_at_work","full_name":"oorion/opportunity_at_work","owner":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oorion/opportunity_at_work","description":"","fork":false,"url":"https://api.github.com/repos/oorion/opportunity_at_work","forks_url":"https://api.github.com/repos/oorion/opportunity_at_work/forks","keys_url":"https://api.github.com/repos/oorion/opportunity_at_work/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oorion/opportunity_at_work/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oorion/opportunity_at_work/teams","hooks_url":"https://api.github.com/repos/oorion/opportunity_at_work/hooks","issue_events_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/events{/number}","events_url":"https://api.github.com/repos/oorion/opportunity_at_work/events","assignees_url":"https://api.github.com/repos/oorion/opportunity_at_work/assignees{/user}","branches_url":"https://api.github.com/repos/oorion/opportunity_at_work/branches{/branch}","tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/tags","blobs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/refs{/sha}","trees_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/{sha}","languages_url":"https://api.github.com/repos/oorion/opportunity_at_work/languages","stargazers_url":"https://api.github.com/repos/oorion/opportunity_at_work/stargazers","contributors_url":"https://api.github.com/repos/oorion/opportunity_at_work/contributors","subscribers_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscribers","subscription_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscription","commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/commits{/sha}","git_commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/commits{/sha}","comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/comments{/number}","issue_comment_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/comments{/number}","contents_url":"https://api.github.com/repos/oorion/opportunity_at_work/contents/{+path}","compare_url":"https://api.github.com/repos/oorion/opportunity_at_work/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oorion/opportunity_at_work/merges","archive_url":"https://api.github.com/repos/oorion/opportunity_at_work/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oorion/opportunity_at_work/downloads","issues_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues{/number}","pulls_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls{/number}","milestones_url":"https://api.github.com/repos/oorion/opportunity_at_work/milestones{/number}","notifications_url":"https://api.github.com/repos/oorion/opportunity_at_work/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oorion/opportunity_at_work/labels{/name}","releases_url":"https://api.github.com/repos/oorion/opportunity_at_work/releases{/id}","created_at":"2015-04-19T21:43:18Z","updated_at":"2015-04-27T19:37:48Z","pushed_at":"2015-04-28T02:17:39Z","git_url":"git://github.com/oorion/opportunity_at_work.git","ssh_url":"git@github.com:oorion/opportunity_at_work.git","clone_url":"https://github.com/oorion/opportunity_at_work.git","svn_url":"https://github.com/oorion/opportunity_at_work","homepage":null,"size":11000,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"oorion:master","ref":"master","sha":"bf24210364566b0387100624eff8bbde9e71ec1c","user":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"repo":{"id":34225645,"name":"opportunity_at_work","full_name":"oorion/opportunity_at_work","owner":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oorion/opportunity_at_work","description":"","fork":false,"url":"https://api.github.com/repos/oorion/opportunity_at_work","forks_url":"https://api.github.com/repos/oorion/opportunity_at_work/forks","keys_url":"https://api.github.com/repos/oorion/opportunity_at_work/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oorion/opportunity_at_work/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oorion/opportunity_at_work/teams","hooks_url":"https://api.github.com/repos/oorion/opportunity_at_work/hooks","issue_events_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/events{/number}","events_url":"https://api.github.com/repos/oorion/opportunity_at_work/events","assignees_url":"https://api.github.com/repos/oorion/opportunity_at_work/assignees{/user}","branches_url":"https://api.github.com/repos/oorion/opportunity_at_work/branches{/branch}","tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/tags","blobs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/refs{/sha}","trees_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/{sha}","languages_url":"https://api.github.com/repos/oorion/opportunity_at_work/languages","stargazers_url":"https://api.github.com/repos/oorion/opportunity_at_work/stargazers","contributors_url":"https://api.github.com/repos/oorion/opportunity_at_work/contributors","subscribers_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscribers","subscription_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscription","commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/commits{/sha}","git_commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/commits{/sha}","comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/comments{/number}","issue_comment_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/comments{/number}","contents_url":"https://api.github.com/repos/oorion/opportunity_at_work/contents/{+path}","compare_url":"https://api.github.com/repos/oorion/opportunity_at_work/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oorion/opportunity_at_work/merges","archive_url":"https://api.github.com/repos/oorion/opportunity_at_work/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oorion/opportunity_at_work/downloads","issues_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues{/number}","pulls_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls{/number}","milestones_url":"https://api.github.com/repos/oorion/opportunity_at_work/milestones{/number}","notifications_url":"https://api.github.com/repos/oorion/opportunity_at_work/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oorion/opportunity_at_work/labels{/name}","releases_url":"https://api.github.com/repos/oorion/opportunity_at_work/releases{/id}","created_at":"2015-04-19T21:43:18Z","updated_at":"2015-04-27T19:37:48Z","pushed_at":"2015-04-28T02:17:39Z","git_url":"git://github.com/oorion/opportunity_at_work.git","ssh_url":"git@github.com:oorion/opportunity_at_work.git","clone_url":"https://github.com/oorion/opportunity_at_work.git","svn_url":"https://github.com/oorion/opportunity_at_work","homepage":null,"size":11000,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18"},"html":{"href":"https://github.com/oorion/opportunity_at_work/pull/18"},"issue":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/issues/18"},"comments":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/c669d853ddb4a4c6f7a1fbd0eb01b2615ee9ce91"}}}}