{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments/42002496","id":42002496,"diff_hunk":"@@ -1,7 +1,7 @@\n - content_for :header do\n   Process a visit request\n \n-- if prison_data(booked_visit)['canned_responses']\n+- if booked_visit.prison_canned_responses","path":"app/views/confirmations/new.html.haml","position":5,"original_position":5,"commit_id":"ecfac0b07ea34a7551e717b10b71ddac62ef7503","original_commit_id":"40fe6be023f79691510f1cbe39fbdb4d294713e2","user":{"login":"threedaymonk","id":17347,"avatar_url":"https://avatars.githubusercontent.com/u/17347?v=3","gravatar_id":"","url":"https://api.github.com/users/threedaymonk","html_url":"https://github.com/threedaymonk","followers_url":"https://api.github.com/users/threedaymonk/followers","following_url":"https://api.github.com/users/threedaymonk/following{/other_user}","gists_url":"https://api.github.com/users/threedaymonk/gists{/gist_id}","starred_url":"https://api.github.com/users/threedaymonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/threedaymonk/subscriptions","organizations_url":"https://api.github.com/users/threedaymonk/orgs","repos_url":"https://api.github.com/users/threedaymonk/repos","events_url":"https://api.github.com/users/threedaymonk/events{/privacy}","received_events_url":"https://api.github.com/users/threedaymonk/received_events","type":"User","site_admin":false},"body":"For our next trick, perhaps we can rename `canned_responses` to something more descriptive: it doesn't seem awfully clear to me.","created_at":"2015-10-14T14:44:45Z","updated_at":"2015-10-14T14:44:45Z","html_url":"https://github.com/ministryofjustice/prison-visits/pull/357#discussion_r42002496","pull_request_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments/42002496"},"html":{"href":"https://github.com/ministryofjustice/prison-visits/pull/357#discussion_r42002496"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357","id":47402592,"html_url":"https://github.com/ministryofjustice/prison-visits/pull/357","diff_url":"https://github.com/ministryofjustice/prison-visits/pull/357.diff","patch_url":"https://github.com/ministryofjustice/prison-visits/pull/357.patch","issue_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/357","number":357,"state":"open","locked":false,"title":" Change the way prison data is accessed.","user":{"login":"tatyree","id":20921,"avatar_url":"https://avatars.githubusercontent.com/u/20921?v=3","gravatar_id":"","url":"https://api.github.com/users/tatyree","html_url":"https://github.com/tatyree","followers_url":"https://api.github.com/users/tatyree/followers","following_url":"https://api.github.com/users/tatyree/following{/other_user}","gists_url":"https://api.github.com/users/tatyree/gists{/gist_id}","starred_url":"https://api.github.com/users/tatyree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatyree/subscriptions","organizations_url":"https://api.github.com/users/tatyree/orgs","repos_url":"https://api.github.com/users/tatyree/repos","events_url":"https://api.github.com/users/tatyree/events{/privacy}","received_events_url":"https://api.github.com/users/tatyree/received_events","type":"User","site_admin":false},"body":"Previously, it had been loaded into Rails.configuration as a hash and accessed as a hash.  This branch changes that such that all access now *must* be done using the Prison model and its instances.\r\n\r\nI'll go ahead and start rebasing master in while it is being reviewed. ","created_at":"2015-10-12T10:03:15Z","updated_at":"2015-10-14T14:44:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"881409929f0260ff8f170b356a72ea145c21a216","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/357/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/ecfac0b07ea34a7551e717b10b71ddac62ef7503","head":{"label":"ministryofjustice:remove-duplicate-prison-data","ref":"remove-duplicate-prison-data","sha":"ecfac0b07ea34a7551e717b10b71ddac62ef7503","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":20570322,"name":"prison-visits","full_name":"ministryofjustice/prison-visits","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/prison-visits","description":"","fork":false,"url":"https://api.github.com/repos/ministryofjustice/prison-visits","forks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/forks","keys_url":"https://api.github.com/repos/ministryofjustice/prison-visits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/prison-visits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/prison-visits/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/events","assignees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/prison-visits/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/prison-visits/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/prison-visits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/prison-visits/merges","archive_url":"https://api.github.com/repos/ministryofjustice/prison-visits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/prison-visits/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/prison-visits/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/prison-visits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/prison-visits/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/prison-visits/releases{/id}","created_at":"2014-06-06T16:24:26Z","updated_at":"2015-08-04T17:02:13Z","pushed_at":"2015-10-14T14:42:09Z","git_url":"git://github.com/ministryofjustice/prison-visits.git","ssh_url":"git@github.com:ministryofjustice/prison-visits.git","clone_url":"https://github.com/ministryofjustice/prison-visits.git","svn_url":"https://github.com/ministryofjustice/prison-visits","homepage":"https://www.prisonvisits.service.gov.uk","size":10975,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":5,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"ab5aa144278ac14c25183f79e9d37d6630e01005","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":20570322,"name":"prison-visits","full_name":"ministryofjustice/prison-visits","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/prison-visits","description":"","fork":false,"url":"https://api.github.com/repos/ministryofjustice/prison-visits","forks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/forks","keys_url":"https://api.github.com/repos/ministryofjustice/prison-visits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/prison-visits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/prison-visits/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/events","assignees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/prison-visits/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/prison-visits/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/prison-visits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/prison-visits/merges","archive_url":"https://api.github.com/repos/ministryofjustice/prison-visits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/prison-visits/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/prison-visits/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/prison-visits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/prison-visits/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/prison-visits/releases{/id}","created_at":"2014-06-06T16:24:26Z","updated_at":"2015-08-04T17:02:13Z","pushed_at":"2015-10-14T14:42:09Z","git_url":"git://github.com/ministryofjustice/prison-visits.git","ssh_url":"git@github.com:ministryofjustice/prison-visits.git","clone_url":"https://github.com/ministryofjustice/prison-visits.git","svn_url":"https://github.com/ministryofjustice/prison-visits","homepage":"https://www.prisonvisits.service.gov.uk","size":10975,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357"},"html":{"href":"https://github.com/ministryofjustice/prison-visits/pull/357"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/357"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/357/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/357/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/ecfac0b07ea34a7551e717b10b71ddac62ef7503"}}}}