{"action":"created","comment":{"url":"https://api.github.com/repos/berkmancenter/bookanook/pulls/comments/64151617","id":64151617,"diff_hunk":"@@ -21,7 +21,11 @@ def show\n   end\n \n   def edit\n-    render layout: false if request.xhr?\n+    render layout: false if request.xhr? \n+    if @reservation.status==\"Confirmed\"\n+      flash[:notice] = \"This reservation has already been confirmed\"","path":"app/controllers/reservations_controller.rb","position":7,"original_position":7,"commit_id":"c5686660c310bec9ecca7d1966a6f6504a94c53d","original_commit_id":"c5686660c310bec9ecca7d1966a6f6504a94c53d","user":{"login":"shubhpatel108","id":4345133,"avatar_url":"https://avatars.githubusercontent.com/u/4345133?v=3","gravatar_id":"","url":"https://api.github.com/users/shubhpatel108","html_url":"https://github.com/shubhpatel108","followers_url":"https://api.github.com/users/shubhpatel108/followers","following_url":"https://api.github.com/users/shubhpatel108/following{/other_user}","gists_url":"https://api.github.com/users/shubhpatel108/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhpatel108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhpatel108/subscriptions","organizations_url":"https://api.github.com/users/shubhpatel108/orgs","repos_url":"https://api.github.com/users/shubhpatel108/repos","events_url":"https://api.github.com/users/shubhpatel108/events{/privacy}","received_events_url":"https://api.github.com/users/shubhpatel108/received_events","type":"User","site_admin":false},"body":"Using locale for internationalization would be a better way.","created_at":"2016-05-22T15:34:58Z","updated_at":"2016-05-22T15:34:58Z","html_url":"https://github.com/berkmancenter/bookanook/pull/93#discussion_r64151617","pull_request_url":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/berkmancenter/bookanook/pulls/comments/64151617"},"html":{"href":"https://github.com/berkmancenter/bookanook/pull/93#discussion_r64151617"},"pull_request":{"href":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93","id":70970082,"html_url":"https://github.com/berkmancenter/bookanook/pull/93","diff_url":"https://github.com/berkmancenter/bookanook/pull/93.diff","patch_url":"https://github.com/berkmancenter/bookanook/pull/93.patch","issue_url":"https://api.github.com/repos/berkmancenter/bookanook/issues/93","number":93,"state":"open","locked":false,"title":"Restrict modification of confirmed reservations","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"body":"#25 Fix","created_at":"2016-05-22T07:22:00Z","updated_at":"2016-05-22T15:34:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7513dc1763bcd3f88e587072bb422be180b69822","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93/commits","review_comments_url":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93/comments","review_comment_url":"https://api.github.com/repos/berkmancenter/bookanook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/berkmancenter/bookanook/issues/93/comments","statuses_url":"https://api.github.com/repos/berkmancenter/bookanook/statuses/c5686660c310bec9ecca7d1966a6f6504a94c53d","head":{"label":"shlok007:dev","ref":"dev","sha":"c5686660c310bec9ecca7d1966a6f6504a94c53d","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"repo":{"id":59384298,"name":"bookanook","full_name":"shlok007/bookanook","owner":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shlok007/bookanook","description":"","fork":true,"url":"https://api.github.com/repos/shlok007/bookanook","forks_url":"https://api.github.com/repos/shlok007/bookanook/forks","keys_url":"https://api.github.com/repos/shlok007/bookanook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shlok007/bookanook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shlok007/bookanook/teams","hooks_url":"https://api.github.com/repos/shlok007/bookanook/hooks","issue_events_url":"https://api.github.com/repos/shlok007/bookanook/issues/events{/number}","events_url":"https://api.github.com/repos/shlok007/bookanook/events","assignees_url":"https://api.github.com/repos/shlok007/bookanook/assignees{/user}","branches_url":"https://api.github.com/repos/shlok007/bookanook/branches{/branch}","tags_url":"https://api.github.com/repos/shlok007/bookanook/tags","blobs_url":"https://api.github.com/repos/shlok007/bookanook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shlok007/bookanook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shlok007/bookanook/git/refs{/sha}","trees_url":"https://api.github.com/repos/shlok007/bookanook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shlok007/bookanook/statuses/{sha}","languages_url":"https://api.github.com/repos/shlok007/bookanook/languages","stargazers_url":"https://api.github.com/repos/shlok007/bookanook/stargazers","contributors_url":"https://api.github.com/repos/shlok007/bookanook/contributors","subscribers_url":"https://api.github.com/repos/shlok007/bookanook/subscribers","subscription_url":"https://api.github.com/repos/shlok007/bookanook/subscription","commits_url":"https://api.github.com/repos/shlok007/bookanook/commits{/sha}","git_commits_url":"https://api.github.com/repos/shlok007/bookanook/git/commits{/sha}","comments_url":"https://api.github.com/repos/shlok007/bookanook/comments{/number}","issue_comment_url":"https://api.github.com/repos/shlok007/bookanook/issues/comments{/number}","contents_url":"https://api.github.com/repos/shlok007/bookanook/contents/{+path}","compare_url":"https://api.github.com/repos/shlok007/bookanook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shlok007/bookanook/merges","archive_url":"https://api.github.com/repos/shlok007/bookanook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shlok007/bookanook/downloads","issues_url":"https://api.github.com/repos/shlok007/bookanook/issues{/number}","pulls_url":"https://api.github.com/repos/shlok007/bookanook/pulls{/number}","milestones_url":"https://api.github.com/repos/shlok007/bookanook/milestones{/number}","notifications_url":"https://api.github.com/repos/shlok007/bookanook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shlok007/bookanook/labels{/name}","releases_url":"https://api.github.com/repos/shlok007/bookanook/releases{/id}","deployments_url":"https://api.github.com/repos/shlok007/bookanook/deployments","created_at":"2016-05-21T22:32:49Z","updated_at":"2016-05-21T22:32:51Z","pushed_at":"2016-05-22T07:18:59Z","git_url":"git://github.com/shlok007/bookanook.git","ssh_url":"git@github.com:shlok007/bookanook.git","clone_url":"https://github.com/shlok007/bookanook.git","svn_url":"https://github.com/shlok007/bookanook","homepage":null,"size":3565,"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":"dev"}},"base":{"label":"berkmancenter:dev","ref":"dev","sha":"0e9f32d04988283ca8215a7118efdee840b67b30","user":{"login":"berkmancenter","id":131221,"avatar_url":"https://avatars.githubusercontent.com/u/131221?v=3","gravatar_id":"","url":"https://api.github.com/users/berkmancenter","html_url":"https://github.com/berkmancenter","followers_url":"https://api.github.com/users/berkmancenter/followers","following_url":"https://api.github.com/users/berkmancenter/following{/other_user}","gists_url":"https://api.github.com/users/berkmancenter/gists{/gist_id}","starred_url":"https://api.github.com/users/berkmancenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkmancenter/subscriptions","organizations_url":"https://api.github.com/users/berkmancenter/orgs","repos_url":"https://api.github.com/users/berkmancenter/repos","events_url":"https://api.github.com/users/berkmancenter/events{/privacy}","received_events_url":"https://api.github.com/users/berkmancenter/received_events","type":"Organization","site_admin":false},"repo":{"id":38395390,"name":"bookanook","full_name":"berkmancenter/bookanook","owner":{"login":"berkmancenter","id":131221,"avatar_url":"https://avatars.githubusercontent.com/u/131221?v=3","gravatar_id":"","url":"https://api.github.com/users/berkmancenter","html_url":"https://github.com/berkmancenter","followers_url":"https://api.github.com/users/berkmancenter/followers","following_url":"https://api.github.com/users/berkmancenter/following{/other_user}","gists_url":"https://api.github.com/users/berkmancenter/gists{/gist_id}","starred_url":"https://api.github.com/users/berkmancenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkmancenter/subscriptions","organizations_url":"https://api.github.com/users/berkmancenter/orgs","repos_url":"https://api.github.com/users/berkmancenter/repos","events_url":"https://api.github.com/users/berkmancenter/events{/privacy}","received_events_url":"https://api.github.com/users/berkmancenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/berkmancenter/bookanook","description":"","fork":false,"url":"https://api.github.com/repos/berkmancenter/bookanook","forks_url":"https://api.github.com/repos/berkmancenter/bookanook/forks","keys_url":"https://api.github.com/repos/berkmancenter/bookanook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berkmancenter/bookanook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berkmancenter/bookanook/teams","hooks_url":"https://api.github.com/repos/berkmancenter/bookanook/hooks","issue_events_url":"https://api.github.com/repos/berkmancenter/bookanook/issues/events{/number}","events_url":"https://api.github.com/repos/berkmancenter/bookanook/events","assignees_url":"https://api.github.com/repos/berkmancenter/bookanook/assignees{/user}","branches_url":"https://api.github.com/repos/berkmancenter/bookanook/branches{/branch}","tags_url":"https://api.github.com/repos/berkmancenter/bookanook/tags","blobs_url":"https://api.github.com/repos/berkmancenter/bookanook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berkmancenter/bookanook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berkmancenter/bookanook/git/refs{/sha}","trees_url":"https://api.github.com/repos/berkmancenter/bookanook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berkmancenter/bookanook/statuses/{sha}","languages_url":"https://api.github.com/repos/berkmancenter/bookanook/languages","stargazers_url":"https://api.github.com/repos/berkmancenter/bookanook/stargazers","contributors_url":"https://api.github.com/repos/berkmancenter/bookanook/contributors","subscribers_url":"https://api.github.com/repos/berkmancenter/bookanook/subscribers","subscription_url":"https://api.github.com/repos/berkmancenter/bookanook/subscription","commits_url":"https://api.github.com/repos/berkmancenter/bookanook/commits{/sha}","git_commits_url":"https://api.github.com/repos/berkmancenter/bookanook/git/commits{/sha}","comments_url":"https://api.github.com/repos/berkmancenter/bookanook/comments{/number}","issue_comment_url":"https://api.github.com/repos/berkmancenter/bookanook/issues/comments{/number}","contents_url":"https://api.github.com/repos/berkmancenter/bookanook/contents/{+path}","compare_url":"https://api.github.com/repos/berkmancenter/bookanook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berkmancenter/bookanook/merges","archive_url":"https://api.github.com/repos/berkmancenter/bookanook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berkmancenter/bookanook/downloads","issues_url":"https://api.github.com/repos/berkmancenter/bookanook/issues{/number}","pulls_url":"https://api.github.com/repos/berkmancenter/bookanook/pulls{/number}","milestones_url":"https://api.github.com/repos/berkmancenter/bookanook/milestones{/number}","notifications_url":"https://api.github.com/repos/berkmancenter/bookanook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berkmancenter/bookanook/labels{/name}","releases_url":"https://api.github.com/repos/berkmancenter/bookanook/releases{/id}","deployments_url":"https://api.github.com/repos/berkmancenter/bookanook/deployments","created_at":"2015-07-01T21:14:23Z","updated_at":"2016-04-28T16:44:31Z","pushed_at":"2016-05-22T13:35:12Z","git_url":"git://github.com/berkmancenter/bookanook.git","ssh_url":"git@github.com:berkmancenter/bookanook.git","clone_url":"https://github.com/berkmancenter/bookanook.git","svn_url":"https://github.com/berkmancenter/bookanook","homepage":null,"size":3589,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":68,"forks":10,"open_issues":68,"watchers":9,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93"},"html":{"href":"https://github.com/berkmancenter/bookanook/pull/93"},"issue":{"href":"https://api.github.com/repos/berkmancenter/bookanook/issues/93"},"comments":{"href":"https://api.github.com/repos/berkmancenter/bookanook/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/berkmancenter/bookanook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/berkmancenter/bookanook/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/berkmancenter/bookanook/statuses/c5686660c310bec9ecca7d1966a6f6504a94c53d"}}}}
{"actor":{"display_login":"shubhpatel108"}}