{"action":"created","comment":{"url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/comments/170548428","pull_request_review_id":99248416,"id":170548428,"diff_hunk":"@@ -1,3 +1,30 @@\n+  function ajaxRequest(method, url, data) {","path":"app/assets/javascripts/questions.js","position":1,"original_position":1,"commit_id":"4fce57ab6acc4ec6450e513653bc75a3000a665e","original_commit_id":"4fce57ab6acc4ec6450e513653bc75a3000a665e","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars3.githubusercontent.com/u/968537?v=4","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"Зачем дублировать функцию? Она же будет доступна из любого файла, они же все в один application.js клеиваются. Сделай какой-нибудь файл вроде common.js и вынести туда общие функции.","created_at":"2018-02-26T10:27:44Z","updated_at":"2018-02-26T10:30:32Z","html_url":"https://github.com/MarynaNogtieva/qna/pull/9#discussion_r170548428","pull_request_url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/comments/170548428"},"html":{"href":"https://github.com/MarynaNogtieva/qna/pull/9#discussion_r170548428"},"pull_request":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9","id":171264599,"html_url":"https://github.com/MarynaNogtieva/qna/pull/9","diff_url":"https://github.com/MarynaNogtieva/qna/pull/9.diff","patch_url":"https://github.com/MarynaNogtieva/qna/pull/9.patch","issue_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues/9","number":9,"state":"open","locked":false,"title":"Lesson 9","user":{"login":"MarynaNogtieva","id":16690352,"avatar_url":"https://avatars2.githubusercontent.com/u/16690352?v=4","gravatar_id":"","url":"https://api.github.com/users/MarynaNogtieva","html_url":"https://github.com/MarynaNogtieva","followers_url":"https://api.github.com/users/MarynaNogtieva/followers","following_url":"https://api.github.com/users/MarynaNogtieva/following{/other_user}","gists_url":"https://api.github.com/users/MarynaNogtieva/gists{/gist_id}","starred_url":"https://api.github.com/users/MarynaNogtieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarynaNogtieva/subscriptions","organizations_url":"https://api.github.com/users/MarynaNogtieva/orgs","repos_url":"https://api.github.com/users/MarynaNogtieva/repos","events_url":"https://api.github.com/users/MarynaNogtieva/events{/privacy}","received_events_url":"https://api.github.com/users/MarynaNogtieva/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-26T01:23:17Z","updated_at":"2018-02-26T10:30:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9440dde685ce7dcde0b65a949da24c7f5625890","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9/commits","review_comments_url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9/comments","review_comment_url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues/9/comments","statuses_url":"https://api.github.com/repos/MarynaNogtieva/qna/statuses/4fce57ab6acc4ec6450e513653bc75a3000a665e","head":{"label":"MarynaNogtieva:lesson-9","ref":"lesson-9","sha":"4fce57ab6acc4ec6450e513653bc75a3000a665e","user":{"login":"MarynaNogtieva","id":16690352,"avatar_url":"https://avatars2.githubusercontent.com/u/16690352?v=4","gravatar_id":"","url":"https://api.github.com/users/MarynaNogtieva","html_url":"https://github.com/MarynaNogtieva","followers_url":"https://api.github.com/users/MarynaNogtieva/followers","following_url":"https://api.github.com/users/MarynaNogtieva/following{/other_user}","gists_url":"https://api.github.com/users/MarynaNogtieva/gists{/gist_id}","starred_url":"https://api.github.com/users/MarynaNogtieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarynaNogtieva/subscriptions","organizations_url":"https://api.github.com/users/MarynaNogtieva/orgs","repos_url":"https://api.github.com/users/MarynaNogtieva/repos","events_url":"https://api.github.com/users/MarynaNogtieva/events{/privacy}","received_events_url":"https://api.github.com/users/MarynaNogtieva/received_events","type":"User","site_admin":false},"repo":{"id":111868701,"name":"qna","full_name":"MarynaNogtieva/qna","owner":{"login":"MarynaNogtieva","id":16690352,"avatar_url":"https://avatars2.githubusercontent.com/u/16690352?v=4","gravatar_id":"","url":"https://api.github.com/users/MarynaNogtieva","html_url":"https://github.com/MarynaNogtieva","followers_url":"https://api.github.com/users/MarynaNogtieva/followers","following_url":"https://api.github.com/users/MarynaNogtieva/following{/other_user}","gists_url":"https://api.github.com/users/MarynaNogtieva/gists{/gist_id}","starred_url":"https://api.github.com/users/MarynaNogtieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarynaNogtieva/subscriptions","organizations_url":"https://api.github.com/users/MarynaNogtieva/orgs","repos_url":"https://api.github.com/users/MarynaNogtieva/repos","events_url":"https://api.github.com/users/MarynaNogtieva/events{/privacy}","received_events_url":"https://api.github.com/users/MarynaNogtieva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarynaNogtieva/qna","description":null,"fork":false,"url":"https://api.github.com/repos/MarynaNogtieva/qna","forks_url":"https://api.github.com/repos/MarynaNogtieva/qna/forks","keys_url":"https://api.github.com/repos/MarynaNogtieva/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarynaNogtieva/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarynaNogtieva/qna/teams","hooks_url":"https://api.github.com/repos/MarynaNogtieva/qna/hooks","issue_events_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues/events{/number}","events_url":"https://api.github.com/repos/MarynaNogtieva/qna/events","assignees_url":"https://api.github.com/repos/MarynaNogtieva/qna/assignees{/user}","branches_url":"https://api.github.com/repos/MarynaNogtieva/qna/branches{/branch}","tags_url":"https://api.github.com/repos/MarynaNogtieva/qna/tags","blobs_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarynaNogtieva/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/MarynaNogtieva/qna/languages","stargazers_url":"https://api.github.com/repos/MarynaNogtieva/qna/stargazers","contributors_url":"https://api.github.com/repos/MarynaNogtieva/qna/contributors","subscribers_url":"https://api.github.com/repos/MarynaNogtieva/qna/subscribers","subscription_url":"https://api.github.com/repos/MarynaNogtieva/qna/subscription","commits_url":"https://api.github.com/repos/MarynaNogtieva/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarynaNogtieva/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarynaNogtieva/qna/contents/{+path}","compare_url":"https://api.github.com/repos/MarynaNogtieva/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarynaNogtieva/qna/merges","archive_url":"https://api.github.com/repos/MarynaNogtieva/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarynaNogtieva/qna/downloads","issues_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues{/number}","pulls_url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/MarynaNogtieva/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/MarynaNogtieva/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarynaNogtieva/qna/labels{/name}","releases_url":"https://api.github.com/repos/MarynaNogtieva/qna/releases{/id}","deployments_url":"https://api.github.com/repos/MarynaNogtieva/qna/deployments","created_at":"2017-11-24T02:44:10Z","updated_at":"2017-11-24T02:44:34Z","pushed_at":"2018-02-26T01:23:18Z","git_url":"git://github.com/MarynaNogtieva/qna.git","ssh_url":"git@github.com:MarynaNogtieva/qna.git","clone_url":"https://github.com/MarynaNogtieva/qna.git","svn_url":"https://github.com/MarynaNogtieva/qna","homepage":null,"size":202,"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":"MarynaNogtieva:master","ref":"master","sha":"1fa38fb2bbcb46f2c1ec6934cc49d19598cd0cca","user":{"login":"MarynaNogtieva","id":16690352,"avatar_url":"https://avatars2.githubusercontent.com/u/16690352?v=4","gravatar_id":"","url":"https://api.github.com/users/MarynaNogtieva","html_url":"https://github.com/MarynaNogtieva","followers_url":"https://api.github.com/users/MarynaNogtieva/followers","following_url":"https://api.github.com/users/MarynaNogtieva/following{/other_user}","gists_url":"https://api.github.com/users/MarynaNogtieva/gists{/gist_id}","starred_url":"https://api.github.com/users/MarynaNogtieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarynaNogtieva/subscriptions","organizations_url":"https://api.github.com/users/MarynaNogtieva/orgs","repos_url":"https://api.github.com/users/MarynaNogtieva/repos","events_url":"https://api.github.com/users/MarynaNogtieva/events{/privacy}","received_events_url":"https://api.github.com/users/MarynaNogtieva/received_events","type":"User","site_admin":false},"repo":{"id":111868701,"name":"qna","full_name":"MarynaNogtieva/qna","owner":{"login":"MarynaNogtieva","id":16690352,"avatar_url":"https://avatars2.githubusercontent.com/u/16690352?v=4","gravatar_id":"","url":"https://api.github.com/users/MarynaNogtieva","html_url":"https://github.com/MarynaNogtieva","followers_url":"https://api.github.com/users/MarynaNogtieva/followers","following_url":"https://api.github.com/users/MarynaNogtieva/following{/other_user}","gists_url":"https://api.github.com/users/MarynaNogtieva/gists{/gist_id}","starred_url":"https://api.github.com/users/MarynaNogtieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarynaNogtieva/subscriptions","organizations_url":"https://api.github.com/users/MarynaNogtieva/orgs","repos_url":"https://api.github.com/users/MarynaNogtieva/repos","events_url":"https://api.github.com/users/MarynaNogtieva/events{/privacy}","received_events_url":"https://api.github.com/users/MarynaNogtieva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarynaNogtieva/qna","description":null,"fork":false,"url":"https://api.github.com/repos/MarynaNogtieva/qna","forks_url":"https://api.github.com/repos/MarynaNogtieva/qna/forks","keys_url":"https://api.github.com/repos/MarynaNogtieva/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarynaNogtieva/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarynaNogtieva/qna/teams","hooks_url":"https://api.github.com/repos/MarynaNogtieva/qna/hooks","issue_events_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues/events{/number}","events_url":"https://api.github.com/repos/MarynaNogtieva/qna/events","assignees_url":"https://api.github.com/repos/MarynaNogtieva/qna/assignees{/user}","branches_url":"https://api.github.com/repos/MarynaNogtieva/qna/branches{/branch}","tags_url":"https://api.github.com/repos/MarynaNogtieva/qna/tags","blobs_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarynaNogtieva/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/MarynaNogtieva/qna/languages","stargazers_url":"https://api.github.com/repos/MarynaNogtieva/qna/stargazers","contributors_url":"https://api.github.com/repos/MarynaNogtieva/qna/contributors","subscribers_url":"https://api.github.com/repos/MarynaNogtieva/qna/subscribers","subscription_url":"https://api.github.com/repos/MarynaNogtieva/qna/subscription","commits_url":"https://api.github.com/repos/MarynaNogtieva/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarynaNogtieva/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarynaNogtieva/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarynaNogtieva/qna/contents/{+path}","compare_url":"https://api.github.com/repos/MarynaNogtieva/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarynaNogtieva/qna/merges","archive_url":"https://api.github.com/repos/MarynaNogtieva/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarynaNogtieva/qna/downloads","issues_url":"https://api.github.com/repos/MarynaNogtieva/qna/issues{/number}","pulls_url":"https://api.github.com/repos/MarynaNogtieva/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/MarynaNogtieva/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/MarynaNogtieva/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarynaNogtieva/qna/labels{/name}","releases_url":"https://api.github.com/repos/MarynaNogtieva/qna/releases{/id}","deployments_url":"https://api.github.com/repos/MarynaNogtieva/qna/deployments","created_at":"2017-11-24T02:44:10Z","updated_at":"2017-11-24T02:44:34Z","pushed_at":"2018-02-26T01:23:18Z","git_url":"git://github.com/MarynaNogtieva/qna.git","ssh_url":"git@github.com:MarynaNogtieva/qna.git","clone_url":"https://github.com/MarynaNogtieva/qna.git","svn_url":"https://github.com/MarynaNogtieva/qna","homepage":null,"size":202,"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/MarynaNogtieva/qna/pulls/9"},"html":{"href":"https://github.com/MarynaNogtieva/qna/pull/9"},"issue":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/issues/9"},"comments":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/MarynaNogtieva/qna/statuses/4fce57ab6acc4ec6450e513653bc75a3000a665e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vkurennov"}}