{"action":"created","comment":{"url":"https://api.github.com/repos/lessuk400/Order/pulls/comments/189860015","pull_request_review_id":122112171,"id":189860015,"diff_hunk":"@@ -0,0 +1,37 @@\n+class MenusController < ApplicationController\n+  def index\n+    @menus = Menu.all\n+    authorize @menus\n+  end\n+\n+  def new\n+    if Date.today.saturday? || Date.today.sunday?\n+      flash[:warning] = 'Today is weekends. No need for menu'\n+      redirect_to root_path\n+    end\n+    if Menu.last.date == Date.today\n+      flash[:warning] = 'You have already created menu for today.'\n+      redirect_to root_path\n+    end\n+    @facade = Menus::NewFacade.new\n+    authorize @facade.menu","path":"app/controllers/menus_controller.rb","position":17,"original_position":17,"commit_id":"4d9bc9a0506341b7558c2fdc66bf7391f7d4cada","original_commit_id":"4d9bc9a0506341b7558c2fdc66bf7391f7d4cada","user":{"login":"ailecksandr","id":12885806,"avatar_url":"https://avatars1.githubusercontent.com/u/12885806?v=4","gravatar_id":"","url":"https://api.github.com/users/ailecksandr","html_url":"https://github.com/ailecksandr","followers_url":"https://api.github.com/users/ailecksandr/followers","following_url":"https://api.github.com/users/ailecksandr/following{/other_user}","gists_url":"https://api.github.com/users/ailecksandr/gists{/gist_id}","starred_url":"https://api.github.com/users/ailecksandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ailecksandr/subscriptions","organizations_url":"https://api.github.com/users/ailecksandr/orgs","repos_url":"https://api.github.com/users/ailecksandr/repos","events_url":"https://api.github.com/users/ailecksandr/events{/privacy}","received_events_url":"https://api.github.com/users/ailecksandr/received_events","type":"User","site_admin":false},"body":"same in all places","created_at":"2018-05-22T11:02:28Z","updated_at":"2018-05-22T11:36:04Z","html_url":"https://github.com/lessuk400/Order/pull/3#discussion_r189860015","pull_request_url":"https://api.github.com/repos/lessuk400/Order/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/lessuk400/Order/pulls/comments/189860015"},"html":{"href":"https://github.com/lessuk400/Order/pull/3#discussion_r189860015"},"pull_request":{"href":"https://api.github.com/repos/lessuk400/Order/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/lessuk400/Order/pulls/3","id":189611363,"html_url":"https://github.com/lessuk400/Order/pull/3","diff_url":"https://github.com/lessuk400/Order/pull/3.diff","patch_url":"https://github.com/lessuk400/Order/pull/3.patch","issue_url":"https://api.github.com/repos/lessuk400/Order/issues/3","number":3,"state":"open","locked":false,"title":"Calendar","user":{"login":"lessuk400","id":21057874,"avatar_url":"https://avatars2.githubusercontent.com/u/21057874?v=4","gravatar_id":"","url":"https://api.github.com/users/lessuk400","html_url":"https://github.com/lessuk400","followers_url":"https://api.github.com/users/lessuk400/followers","following_url":"https://api.github.com/users/lessuk400/following{/other_user}","gists_url":"https://api.github.com/users/lessuk400/gists{/gist_id}","starred_url":"https://api.github.com/users/lessuk400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessuk400/subscriptions","organizations_url":"https://api.github.com/users/lessuk400/orgs","repos_url":"https://api.github.com/users/lessuk400/repos","events_url":"https://api.github.com/users/lessuk400/events{/privacy}","received_events_url":"https://api.github.com/users/lessuk400/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-22T10:12:01Z","updated_at":"2018-05-22T11:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34fb6f25b73df325313aae4090f6d00552a42f1e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lessuk400/Order/pulls/3/commits","review_comments_url":"https://api.github.com/repos/lessuk400/Order/pulls/3/comments","review_comment_url":"https://api.github.com/repos/lessuk400/Order/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lessuk400/Order/issues/3/comments","statuses_url":"https://api.github.com/repos/lessuk400/Order/statuses/4d9bc9a0506341b7558c2fdc66bf7391f7d4cada","head":{"label":"lessuk400:Calendar","ref":"Calendar","sha":"4d9bc9a0506341b7558c2fdc66bf7391f7d4cada","user":{"login":"lessuk400","id":21057874,"avatar_url":"https://avatars2.githubusercontent.com/u/21057874?v=4","gravatar_id":"","url":"https://api.github.com/users/lessuk400","html_url":"https://github.com/lessuk400","followers_url":"https://api.github.com/users/lessuk400/followers","following_url":"https://api.github.com/users/lessuk400/following{/other_user}","gists_url":"https://api.github.com/users/lessuk400/gists{/gist_id}","starred_url":"https://api.github.com/users/lessuk400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessuk400/subscriptions","organizations_url":"https://api.github.com/users/lessuk400/orgs","repos_url":"https://api.github.com/users/lessuk400/repos","events_url":"https://api.github.com/users/lessuk400/events{/privacy}","received_events_url":"https://api.github.com/users/lessuk400/received_events","type":"User","site_admin":false},"repo":{"id":133489449,"name":"Order","full_name":"lessuk400/Order","owner":{"login":"lessuk400","id":21057874,"avatar_url":"https://avatars2.githubusercontent.com/u/21057874?v=4","gravatar_id":"","url":"https://api.github.com/users/lessuk400","html_url":"https://github.com/lessuk400","followers_url":"https://api.github.com/users/lessuk400/followers","following_url":"https://api.github.com/users/lessuk400/following{/other_user}","gists_url":"https://api.github.com/users/lessuk400/gists{/gist_id}","starred_url":"https://api.github.com/users/lessuk400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessuk400/subscriptions","organizations_url":"https://api.github.com/users/lessuk400/orgs","repos_url":"https://api.github.com/users/lessuk400/repos","events_url":"https://api.github.com/users/lessuk400/events{/privacy}","received_events_url":"https://api.github.com/users/lessuk400/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lessuk400/Order","description":null,"fork":false,"url":"https://api.github.com/repos/lessuk400/Order","forks_url":"https://api.github.com/repos/lessuk400/Order/forks","keys_url":"https://api.github.com/repos/lessuk400/Order/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lessuk400/Order/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lessuk400/Order/teams","hooks_url":"https://api.github.com/repos/lessuk400/Order/hooks","issue_events_url":"https://api.github.com/repos/lessuk400/Order/issues/events{/number}","events_url":"https://api.github.com/repos/lessuk400/Order/events","assignees_url":"https://api.github.com/repos/lessuk400/Order/assignees{/user}","branches_url":"https://api.github.com/repos/lessuk400/Order/branches{/branch}","tags_url":"https://api.github.com/repos/lessuk400/Order/tags","blobs_url":"https://api.github.com/repos/lessuk400/Order/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lessuk400/Order/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lessuk400/Order/git/refs{/sha}","trees_url":"https://api.github.com/repos/lessuk400/Order/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lessuk400/Order/statuses/{sha}","languages_url":"https://api.github.com/repos/lessuk400/Order/languages","stargazers_url":"https://api.github.com/repos/lessuk400/Order/stargazers","contributors_url":"https://api.github.com/repos/lessuk400/Order/contributors","subscribers_url":"https://api.github.com/repos/lessuk400/Order/subscribers","subscription_url":"https://api.github.com/repos/lessuk400/Order/subscription","commits_url":"https://api.github.com/repos/lessuk400/Order/commits{/sha}","git_commits_url":"https://api.github.com/repos/lessuk400/Order/git/commits{/sha}","comments_url":"https://api.github.com/repos/lessuk400/Order/comments{/number}","issue_comment_url":"https://api.github.com/repos/lessuk400/Order/issues/comments{/number}","contents_url":"https://api.github.com/repos/lessuk400/Order/contents/{+path}","compare_url":"https://api.github.com/repos/lessuk400/Order/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lessuk400/Order/merges","archive_url":"https://api.github.com/repos/lessuk400/Order/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lessuk400/Order/downloads","issues_url":"https://api.github.com/repos/lessuk400/Order/issues{/number}","pulls_url":"https://api.github.com/repos/lessuk400/Order/pulls{/number}","milestones_url":"https://api.github.com/repos/lessuk400/Order/milestones{/number}","notifications_url":"https://api.github.com/repos/lessuk400/Order/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lessuk400/Order/labels{/name}","releases_url":"https://api.github.com/repos/lessuk400/Order/releases{/id}","deployments_url":"https://api.github.com/repos/lessuk400/Order/deployments","created_at":"2018-05-15T09:01:57Z","updated_at":"2018-05-15T09:02:38Z","pushed_at":"2018-05-22T10:12:02Z","git_url":"git://github.com/lessuk400/Order.git","ssh_url":"git@github.com:lessuk400/Order.git","clone_url":"https://github.com/lessuk400/Order.git","svn_url":"https://github.com/lessuk400/Order","homepage":null,"size":219,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lessuk400:master","ref":"master","sha":"5c1572520ead935b7582c04f16f1ef30b2a118cd","user":{"login":"lessuk400","id":21057874,"avatar_url":"https://avatars2.githubusercontent.com/u/21057874?v=4","gravatar_id":"","url":"https://api.github.com/users/lessuk400","html_url":"https://github.com/lessuk400","followers_url":"https://api.github.com/users/lessuk400/followers","following_url":"https://api.github.com/users/lessuk400/following{/other_user}","gists_url":"https://api.github.com/users/lessuk400/gists{/gist_id}","starred_url":"https://api.github.com/users/lessuk400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessuk400/subscriptions","organizations_url":"https://api.github.com/users/lessuk400/orgs","repos_url":"https://api.github.com/users/lessuk400/repos","events_url":"https://api.github.com/users/lessuk400/events{/privacy}","received_events_url":"https://api.github.com/users/lessuk400/received_events","type":"User","site_admin":false},"repo":{"id":133489449,"name":"Order","full_name":"lessuk400/Order","owner":{"login":"lessuk400","id":21057874,"avatar_url":"https://avatars2.githubusercontent.com/u/21057874?v=4","gravatar_id":"","url":"https://api.github.com/users/lessuk400","html_url":"https://github.com/lessuk400","followers_url":"https://api.github.com/users/lessuk400/followers","following_url":"https://api.github.com/users/lessuk400/following{/other_user}","gists_url":"https://api.github.com/users/lessuk400/gists{/gist_id}","starred_url":"https://api.github.com/users/lessuk400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessuk400/subscriptions","organizations_url":"https://api.github.com/users/lessuk400/orgs","repos_url":"https://api.github.com/users/lessuk400/repos","events_url":"https://api.github.com/users/lessuk400/events{/privacy}","received_events_url":"https://api.github.com/users/lessuk400/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lessuk400/Order","description":null,"fork":false,"url":"https://api.github.com/repos/lessuk400/Order","forks_url":"https://api.github.com/repos/lessuk400/Order/forks","keys_url":"https://api.github.com/repos/lessuk400/Order/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lessuk400/Order/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lessuk400/Order/teams","hooks_url":"https://api.github.com/repos/lessuk400/Order/hooks","issue_events_url":"https://api.github.com/repos/lessuk400/Order/issues/events{/number}","events_url":"https://api.github.com/repos/lessuk400/Order/events","assignees_url":"https://api.github.com/repos/lessuk400/Order/assignees{/user}","branches_url":"https://api.github.com/repos/lessuk400/Order/branches{/branch}","tags_url":"https://api.github.com/repos/lessuk400/Order/tags","blobs_url":"https://api.github.com/repos/lessuk400/Order/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lessuk400/Order/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lessuk400/Order/git/refs{/sha}","trees_url":"https://api.github.com/repos/lessuk400/Order/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lessuk400/Order/statuses/{sha}","languages_url":"https://api.github.com/repos/lessuk400/Order/languages","stargazers_url":"https://api.github.com/repos/lessuk400/Order/stargazers","contributors_url":"https://api.github.com/repos/lessuk400/Order/contributors","subscribers_url":"https://api.github.com/repos/lessuk400/Order/subscribers","subscription_url":"https://api.github.com/repos/lessuk400/Order/subscription","commits_url":"https://api.github.com/repos/lessuk400/Order/commits{/sha}","git_commits_url":"https://api.github.com/repos/lessuk400/Order/git/commits{/sha}","comments_url":"https://api.github.com/repos/lessuk400/Order/comments{/number}","issue_comment_url":"https://api.github.com/repos/lessuk400/Order/issues/comments{/number}","contents_url":"https://api.github.com/repos/lessuk400/Order/contents/{+path}","compare_url":"https://api.github.com/repos/lessuk400/Order/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lessuk400/Order/merges","archive_url":"https://api.github.com/repos/lessuk400/Order/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lessuk400/Order/downloads","issues_url":"https://api.github.com/repos/lessuk400/Order/issues{/number}","pulls_url":"https://api.github.com/repos/lessuk400/Order/pulls{/number}","milestones_url":"https://api.github.com/repos/lessuk400/Order/milestones{/number}","notifications_url":"https://api.github.com/repos/lessuk400/Order/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lessuk400/Order/labels{/name}","releases_url":"https://api.github.com/repos/lessuk400/Order/releases{/id}","deployments_url":"https://api.github.com/repos/lessuk400/Order/deployments","created_at":"2018-05-15T09:01:57Z","updated_at":"2018-05-15T09:02:38Z","pushed_at":"2018-05-22T10:12:02Z","git_url":"git://github.com/lessuk400/Order.git","ssh_url":"git@github.com:lessuk400/Order.git","clone_url":"https://github.com/lessuk400/Order.git","svn_url":"https://github.com/lessuk400/Order","homepage":null,"size":219,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lessuk400/Order/pulls/3"},"html":{"href":"https://github.com/lessuk400/Order/pull/3"},"issue":{"href":"https://api.github.com/repos/lessuk400/Order/issues/3"},"comments":{"href":"https://api.github.com/repos/lessuk400/Order/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/lessuk400/Order/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/lessuk400/Order/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lessuk400/Order/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/lessuk400/Order/statuses/4d9bc9a0506341b7558c2fdc66bf7391f7d4cada"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ailecksandr"}}