{"action":"created","comment":{"url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments/75599591","id":75599591,"diff_hunk":"@@ -3,16 +3,17 @@ class BucketJobsController < ApplicationController\n   before_action :set_job, only: [:update, :destroy]\n \n   def create\n-    job = Job.find(params[:job_id])\n-    @bucket.add_job(job.id)\n+    @job = Job.find(params[:job_id])\n+    @bucket.add_job(@job.id)\n     session[:bucket] = @bucket.contents\n-    flash[:success] = \"You have started an application for #{job.title}. You have started #{pluralize(@bucket.total_jobs, 'job')} applications.\"\n-    redirect_to bucket_path(job) \n+    flash[:success] = \"You have started an application for #{@job.title}. You have started #{pluralize(@bucket.total_jobs, 'job')} applications.\"\n+    create_job_application","path":"app/controllers/bucket_jobs_controller.rb","position":12,"original_position":12,"commit_id":"64d58b70cec7874447d13f0cdee23875a903cf39","original_commit_id":"64d58b70cec7874447d13f0cdee23875a903cf39","user":{"login":"jmejia","id":73824,"avatar_url":"https://avatars.githubusercontent.com/u/73824?v=3","gravatar_id":"","url":"https://api.github.com/users/jmejia","html_url":"https://github.com/jmejia","followers_url":"https://api.github.com/users/jmejia/followers","following_url":"https://api.github.com/users/jmejia/following{/other_user}","gists_url":"https://api.github.com/users/jmejia/gists{/gist_id}","starred_url":"https://api.github.com/users/jmejia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmejia/subscriptions","organizations_url":"https://api.github.com/users/jmejia/orgs","repos_url":"https://api.github.com/users/jmejia/repos","events_url":"https://api.github.com/users/jmejia/events{/privacy}","received_events_url":"https://api.github.com/users/jmejia/received_events","type":"User","site_admin":false},"body":"@roscalabrin There's a good amount of logic that is starting to live here. I'd recommend splitting it out into a PORO. If you're not sure how, go ahead and ship this and create a story to refactor. We can sit maybe include  anyone that is interested as I live refactor 🙀 ","created_at":"2016-08-21T17:34:10Z","updated_at":"2016-08-21T17:34:10Z","html_url":"https://github.com/NicoleKMarino/the_pivot/pull/75#discussion_r75599591","pull_request_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments/75599591"},"html":{"href":"https://github.com/NicoleKMarino/the_pivot/pull/75#discussion_r75599591"},"pull_request":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75","id":82110841,"html_url":"https://github.com/NicoleKMarino/the_pivot/pull/75","diff_url":"https://github.com/NicoleKMarino/the_pivot/pull/75.diff","patch_url":"https://github.com/NicoleKMarino/the_pivot/pull/75.patch","issue_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/75","number":75,"state":"open","locked":false,"title":"20 user can apply for job","user":{"login":"roscalabrin","id":13910871,"avatar_url":"https://avatars.githubusercontent.com/u/13910871?v=3","gravatar_id":"","url":"https://api.github.com/users/roscalabrin","html_url":"https://github.com/roscalabrin","followers_url":"https://api.github.com/users/roscalabrin/followers","following_url":"https://api.github.com/users/roscalabrin/following{/other_user}","gists_url":"https://api.github.com/users/roscalabrin/gists{/gist_id}","starred_url":"https://api.github.com/users/roscalabrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roscalabrin/subscriptions","organizations_url":"https://api.github.com/users/roscalabrin/orgs","repos_url":"https://api.github.com/users/roscalabrin/repos","events_url":"https://api.github.com/users/roscalabrin/events{/privacy}","received_events_url":"https://api.github.com/users/roscalabrin/received_events","type":"User","site_admin":false},"body":"add functionality for a registered user to apply for a job\r\n\r\n74 tests:\r\n47 passing and 27 pending ","created_at":"2016-08-21T17:09:32Z","updated_at":"2016-08-21T17:34:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac4876c1a68b8a3e9a5a4b27f9a3877204122ee8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75/commits","review_comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75/comments","review_comment_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/75/comments","statuses_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/64d58b70cec7874447d13f0cdee23875a903cf39","head":{"label":"NicoleKMarino:20-user_can_apply_for_job","ref":"20-user_can_apply_for_job","sha":"64d58b70cec7874447d13f0cdee23875a903cf39","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"repo":{"id":65752676,"name":"the_pivot","full_name":"NicoleKMarino/the_pivot","owner":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleKMarino/the_pivot","description":"rails, mvc, PostgreSQL, multi-tenancy, bcrypt  ","fork":false,"url":"https://api.github.com/repos/NicoleKMarino/the_pivot","forks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/forks","keys_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/teams","hooks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/events","assignees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/tags","blobs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/languages","stargazers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscription","commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/merges","archive_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/downloads","issues_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/deployments","created_at":"2016-08-15T17:52:13Z","updated_at":"2016-08-20T01:20:06Z","pushed_at":"2016-08-21T17:09:32Z","git_url":"git://github.com/NicoleKMarino/the_pivot.git","ssh_url":"git@github.com:NicoleKMarino/the_pivot.git","clone_url":"https://github.com/NicoleKMarino/the_pivot.git","svn_url":"https://github.com/NicoleKMarino/the_pivot","homepage":"","size":2554,"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":33,"forks":0,"open_issues":33,"watchers":0,"default_branch":"master"}},"base":{"label":"NicoleKMarino:develop","ref":"develop","sha":"c18cd8dc217654f01d0be89c89b0ecbdac6abe07","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"repo":{"id":65752676,"name":"the_pivot","full_name":"NicoleKMarino/the_pivot","owner":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleKMarino/the_pivot","description":"rails, mvc, PostgreSQL, multi-tenancy, bcrypt  ","fork":false,"url":"https://api.github.com/repos/NicoleKMarino/the_pivot","forks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/forks","keys_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/teams","hooks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/events","assignees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/tags","blobs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/languages","stargazers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscription","commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/merges","archive_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/downloads","issues_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/deployments","created_at":"2016-08-15T17:52:13Z","updated_at":"2016-08-20T01:20:06Z","pushed_at":"2016-08-21T17:09:32Z","git_url":"git://github.com/NicoleKMarino/the_pivot.git","ssh_url":"git@github.com:NicoleKMarino/the_pivot.git","clone_url":"https://github.com/NicoleKMarino/the_pivot.git","svn_url":"https://github.com/NicoleKMarino/the_pivot","homepage":"","size":2554,"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":33,"forks":0,"open_issues":33,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75"},"html":{"href":"https://github.com/NicoleKMarino/the_pivot/pull/75"},"issue":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/75"},"comments":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/64d58b70cec7874447d13f0cdee23875a903cf39"}}}}
{"actor":{"display_login":"jmejia"}}