{"action":"created","comment":{"url":"https://api.github.com/repos/umts/jobapps/pulls/comments/67550062","id":67550062,"diff_hunk":"@@ -16,7 +16,9 @@ def create\n                                                           reviewed: false))\n     record.email_subscribers applicant: @current_user\n \n-    create_unavailability(record) if record.position.application_template.unavailability_enabled\n+    if record.position.application_template.unavailability_enabled","path":"app/controllers/application_records_controller.rb","position":null,"original_position":5,"commit_id":"b33a464b943ff3fc97c58c0ae9646e4298ff9c31","original_commit_id":"ecfd80301fb6e8c3050db82a9d12fb21b85be56d","user":{"login":"dfaulken","id":3988134,"avatar_url":"https://avatars.githubusercontent.com/u/3988134?v=3","gravatar_id":"","url":"https://api.github.com/users/dfaulken","html_url":"https://github.com/dfaulken","followers_url":"https://api.github.com/users/dfaulken/followers","following_url":"https://api.github.com/users/dfaulken/following{/other_user}","gists_url":"https://api.github.com/users/dfaulken/gists{/gist_id}","starred_url":"https://api.github.com/users/dfaulken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfaulken/subscriptions","organizations_url":"https://api.github.com/users/dfaulken/orgs","repos_url":"https://api.github.com/users/dfaulken/repos","events_url":"https://api.github.com/users/dfaulken/events{/privacy}","received_events_url":"https://api.github.com/users/dfaulken/received_events","type":"User","site_admin":false},"body":"`unavailability_enabled?`","created_at":"2016-06-17T17:53:28Z","updated_at":"2016-06-17T17:53:28Z","html_url":"https://github.com/umts/jobapps/pull/253#discussion_r67550062","pull_request_url":"https://api.github.com/repos/umts/jobapps/pulls/253","_links":{"self":{"href":"https://api.github.com/repos/umts/jobapps/pulls/comments/67550062"},"html":{"href":"https://github.com/umts/jobapps/pull/253#discussion_r67550062"},"pull_request":{"href":"https://api.github.com/repos/umts/jobapps/pulls/253"}}},"pull_request":{"url":"https://api.github.com/repos/umts/jobapps/pulls/253","id":74122313,"html_url":"https://github.com/umts/jobapps/pull/253","diff_url":"https://github.com/umts/jobapps/pull/253.diff","patch_url":"https://github.com/umts/jobapps/pull/253.patch","issue_url":"https://api.github.com/repos/umts/jobapps/issues/253","number":253,"state":"open","locked":false,"title":"Unavailability Calendar","user":{"login":"bgregg","id":14984384,"avatar_url":"https://avatars.githubusercontent.com/u/14984384?v=3","gravatar_id":"","url":"https://api.github.com/users/bgregg","html_url":"https://github.com/bgregg","followers_url":"https://api.github.com/users/bgregg/followers","following_url":"https://api.github.com/users/bgregg/following{/other_user}","gists_url":"https://api.github.com/users/bgregg/gists{/gist_id}","starred_url":"https://api.github.com/users/bgregg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgregg/subscriptions","organizations_url":"https://api.github.com/users/bgregg/orgs","repos_url":"https://api.github.com/users/bgregg/repos","events_url":"https://api.github.com/users/bgregg/events{/privacy}","received_events_url":"https://api.github.com/users/bgregg/received_events","type":"User","site_admin":false},"body":"Staff members who make applications can decide whether or not they want to ask for unavailability on their application. If they decide to do this, the template will have a calendar with checkboxes that the applicant checks off the times they are unavailable during a given week, which is stored in a database  model called unavailability. The staff member then views their application record, and at the bottom there is a calendar that is grayed out where the applicant is not unavailable. \r\n\r\nCloses #132.","created_at":"2016-06-16T17:41:12Z","updated_at":"2016-06-17T17:53:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b373964be468cd815cb36886d6b33c2115618c60","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/umts/jobapps/pulls/253/commits","review_comments_url":"https://api.github.com/repos/umts/jobapps/pulls/253/comments","review_comment_url":"https://api.github.com/repos/umts/jobapps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/umts/jobapps/issues/253/comments","statuses_url":"https://api.github.com/repos/umts/jobapps/statuses/b33a464b943ff3fc97c58c0ae9646e4298ff9c31","head":{"label":"umts:unavailability-2.0","ref":"unavailability-2.0","sha":"b33a464b943ff3fc97c58c0ae9646e4298ff9c31","user":{"login":"umts","id":398175,"avatar_url":"https://avatars.githubusercontent.com/u/398175?v=3","gravatar_id":"","url":"https://api.github.com/users/umts","html_url":"https://github.com/umts","followers_url":"https://api.github.com/users/umts/followers","following_url":"https://api.github.com/users/umts/following{/other_user}","gists_url":"https://api.github.com/users/umts/gists{/gist_id}","starred_url":"https://api.github.com/users/umts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umts/subscriptions","organizations_url":"https://api.github.com/users/umts/orgs","repos_url":"https://api.github.com/users/umts/repos","events_url":"https://api.github.com/users/umts/events{/privacy}","received_events_url":"https://api.github.com/users/umts/received_events","type":"Organization","site_admin":false},"repo":{"id":35909798,"name":"jobapps","full_name":"umts/jobapps","owner":{"login":"umts","id":398175,"avatar_url":"https://avatars.githubusercontent.com/u/398175?v=3","gravatar_id":"","url":"https://api.github.com/users/umts","html_url":"https://github.com/umts","followers_url":"https://api.github.com/users/umts/followers","following_url":"https://api.github.com/users/umts/following{/other_user}","gists_url":"https://api.github.com/users/umts/gists{/gist_id}","starred_url":"https://api.github.com/users/umts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umts/subscriptions","organizations_url":"https://api.github.com/users/umts/orgs","repos_url":"https://api.github.com/users/umts/repos","events_url":"https://api.github.com/users/umts/events{/privacy}","received_events_url":"https://api.github.com/users/umts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/umts/jobapps","description":"Barebones Rails 4 app for job application, interview scheduling, demographic reporting, and application resource configuration.","fork":false,"url":"https://api.github.com/repos/umts/jobapps","forks_url":"https://api.github.com/repos/umts/jobapps/forks","keys_url":"https://api.github.com/repos/umts/jobapps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umts/jobapps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umts/jobapps/teams","hooks_url":"https://api.github.com/repos/umts/jobapps/hooks","issue_events_url":"https://api.github.com/repos/umts/jobapps/issues/events{/number}","events_url":"https://api.github.com/repos/umts/jobapps/events","assignees_url":"https://api.github.com/repos/umts/jobapps/assignees{/user}","branches_url":"https://api.github.com/repos/umts/jobapps/branches{/branch}","tags_url":"https://api.github.com/repos/umts/jobapps/tags","blobs_url":"https://api.github.com/repos/umts/jobapps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umts/jobapps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umts/jobapps/git/refs{/sha}","trees_url":"https://api.github.com/repos/umts/jobapps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umts/jobapps/statuses/{sha}","languages_url":"https://api.github.com/repos/umts/jobapps/languages","stargazers_url":"https://api.github.com/repos/umts/jobapps/stargazers","contributors_url":"https://api.github.com/repos/umts/jobapps/contributors","subscribers_url":"https://api.github.com/repos/umts/jobapps/subscribers","subscription_url":"https://api.github.com/repos/umts/jobapps/subscription","commits_url":"https://api.github.com/repos/umts/jobapps/commits{/sha}","git_commits_url":"https://api.github.com/repos/umts/jobapps/git/commits{/sha}","comments_url":"https://api.github.com/repos/umts/jobapps/comments{/number}","issue_comment_url":"https://api.github.com/repos/umts/jobapps/issues/comments{/number}","contents_url":"https://api.github.com/repos/umts/jobapps/contents/{+path}","compare_url":"https://api.github.com/repos/umts/jobapps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umts/jobapps/merges","archive_url":"https://api.github.com/repos/umts/jobapps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umts/jobapps/downloads","issues_url":"https://api.github.com/repos/umts/jobapps/issues{/number}","pulls_url":"https://api.github.com/repos/umts/jobapps/pulls{/number}","milestones_url":"https://api.github.com/repos/umts/jobapps/milestones{/number}","notifications_url":"https://api.github.com/repos/umts/jobapps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umts/jobapps/labels{/name}","releases_url":"https://api.github.com/repos/umts/jobapps/releases{/id}","deployments_url":"https://api.github.com/repos/umts/jobapps/deployments","created_at":"2015-05-19T21:34:57Z","updated_at":"2016-06-04T14:43:09Z","pushed_at":"2016-06-17T17:36:33Z","git_url":"git://github.com/umts/jobapps.git","ssh_url":"git@github.com:umts/jobapps.git","clone_url":"https://github.com/umts/jobapps.git","svn_url":"https://github.com/umts/jobapps","homepage":"https://transit-jobapps.admin.umass.edu","size":1695,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"umts:master","ref":"master","sha":"b3be5005e1768ddcaac0b693c1645ca761ed5e1c","user":{"login":"umts","id":398175,"avatar_url":"https://avatars.githubusercontent.com/u/398175?v=3","gravatar_id":"","url":"https://api.github.com/users/umts","html_url":"https://github.com/umts","followers_url":"https://api.github.com/users/umts/followers","following_url":"https://api.github.com/users/umts/following{/other_user}","gists_url":"https://api.github.com/users/umts/gists{/gist_id}","starred_url":"https://api.github.com/users/umts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umts/subscriptions","organizations_url":"https://api.github.com/users/umts/orgs","repos_url":"https://api.github.com/users/umts/repos","events_url":"https://api.github.com/users/umts/events{/privacy}","received_events_url":"https://api.github.com/users/umts/received_events","type":"Organization","site_admin":false},"repo":{"id":35909798,"name":"jobapps","full_name":"umts/jobapps","owner":{"login":"umts","id":398175,"avatar_url":"https://avatars.githubusercontent.com/u/398175?v=3","gravatar_id":"","url":"https://api.github.com/users/umts","html_url":"https://github.com/umts","followers_url":"https://api.github.com/users/umts/followers","following_url":"https://api.github.com/users/umts/following{/other_user}","gists_url":"https://api.github.com/users/umts/gists{/gist_id}","starred_url":"https://api.github.com/users/umts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umts/subscriptions","organizations_url":"https://api.github.com/users/umts/orgs","repos_url":"https://api.github.com/users/umts/repos","events_url":"https://api.github.com/users/umts/events{/privacy}","received_events_url":"https://api.github.com/users/umts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/umts/jobapps","description":"Barebones Rails 4 app for job application, interview scheduling, demographic reporting, and application resource configuration.","fork":false,"url":"https://api.github.com/repos/umts/jobapps","forks_url":"https://api.github.com/repos/umts/jobapps/forks","keys_url":"https://api.github.com/repos/umts/jobapps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umts/jobapps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umts/jobapps/teams","hooks_url":"https://api.github.com/repos/umts/jobapps/hooks","issue_events_url":"https://api.github.com/repos/umts/jobapps/issues/events{/number}","events_url":"https://api.github.com/repos/umts/jobapps/events","assignees_url":"https://api.github.com/repos/umts/jobapps/assignees{/user}","branches_url":"https://api.github.com/repos/umts/jobapps/branches{/branch}","tags_url":"https://api.github.com/repos/umts/jobapps/tags","blobs_url":"https://api.github.com/repos/umts/jobapps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umts/jobapps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umts/jobapps/git/refs{/sha}","trees_url":"https://api.github.com/repos/umts/jobapps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umts/jobapps/statuses/{sha}","languages_url":"https://api.github.com/repos/umts/jobapps/languages","stargazers_url":"https://api.github.com/repos/umts/jobapps/stargazers","contributors_url":"https://api.github.com/repos/umts/jobapps/contributors","subscribers_url":"https://api.github.com/repos/umts/jobapps/subscribers","subscription_url":"https://api.github.com/repos/umts/jobapps/subscription","commits_url":"https://api.github.com/repos/umts/jobapps/commits{/sha}","git_commits_url":"https://api.github.com/repos/umts/jobapps/git/commits{/sha}","comments_url":"https://api.github.com/repos/umts/jobapps/comments{/number}","issue_comment_url":"https://api.github.com/repos/umts/jobapps/issues/comments{/number}","contents_url":"https://api.github.com/repos/umts/jobapps/contents/{+path}","compare_url":"https://api.github.com/repos/umts/jobapps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umts/jobapps/merges","archive_url":"https://api.github.com/repos/umts/jobapps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umts/jobapps/downloads","issues_url":"https://api.github.com/repos/umts/jobapps/issues{/number}","pulls_url":"https://api.github.com/repos/umts/jobapps/pulls{/number}","milestones_url":"https://api.github.com/repos/umts/jobapps/milestones{/number}","notifications_url":"https://api.github.com/repos/umts/jobapps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umts/jobapps/labels{/name}","releases_url":"https://api.github.com/repos/umts/jobapps/releases{/id}","deployments_url":"https://api.github.com/repos/umts/jobapps/deployments","created_at":"2015-05-19T21:34:57Z","updated_at":"2016-06-04T14:43:09Z","pushed_at":"2016-06-17T17:36:33Z","git_url":"git://github.com/umts/jobapps.git","ssh_url":"git@github.com:umts/jobapps.git","clone_url":"https://github.com/umts/jobapps.git","svn_url":"https://github.com/umts/jobapps","homepage":"https://transit-jobapps.admin.umass.edu","size":1695,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/umts/jobapps/pulls/253"},"html":{"href":"https://github.com/umts/jobapps/pull/253"},"issue":{"href":"https://api.github.com/repos/umts/jobapps/issues/253"},"comments":{"href":"https://api.github.com/repos/umts/jobapps/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/umts/jobapps/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/umts/jobapps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/umts/jobapps/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/umts/jobapps/statuses/b33a464b943ff3fc97c58c0ae9646e4298ff9c31"}}}}
{"actor":{"display_login":"dfaulken"}}