{"action":"created","comment":{"url":"https://api.github.com/repos/tonymadbrain/qna/pulls/comments/30000307","id":30000307,"diff_hunk":"@@ -0,0 +1,46 @@\n+# Place all the behaviors and hooks related to the matching controller here.\n+# All this logic will automatically be available in application.js.\n+# You can use CoffeeScript in this file: http://coffeescript.org/\n+\n+editQuestionLink =  ($doc) ->\n+  $('.edit-question-link').click (e) ->\n+    e.preventDefault()\n+    $(this).hide()\n+    question_id = $(this).data('questionId')\n+    $('form#edit-question-' + question_id).show()\n+\n+$(document).on 'ajax:success', '.vote_link', (e, data, status, xhr) ->","path":"app/assets/javascripts/questions.js.coffee","position":12,"original_position":12,"commit_id":"e5f0ea6b017723ff1480dc66e1aef38a18427851","original_commit_id":"e5f0ea6b017723ff1480dc66e1aef38a18427851","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","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":"Вот этот обработчик и на `.delete_vote_link` тоже очень похожи, можно вынести общие части и переиспользовать их.","created_at":"2015-05-10T09:26:55Z","updated_at":"2015-05-10T09:26:55Z","html_url":"https://github.com/tonymadbrain/qna/pull/30#discussion_r30000307","pull_request_url":"https://api.github.com/repos/tonymadbrain/qna/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/tonymadbrain/qna/pulls/comments/30000307"},"html":{"href":"https://github.com/tonymadbrain/qna/pull/30#discussion_r30000307"},"pull_request":{"href":"https://api.github.com/repos/tonymadbrain/qna/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/tonymadbrain/qna/pulls/30","id":35074122,"html_url":"https://github.com/tonymadbrain/qna/pull/30","diff_url":"https://github.com/tonymadbrain/qna/pull/30.diff","patch_url":"https://github.com/tonymadbrain/qna/pull/30.patch","issue_url":"https://api.github.com/repos/tonymadbrain/qna/issues/30","number":30,"state":"open","locked":false,"title":"Task9","user":{"login":"tonymadbrain","id":5266592,"avatar_url":"https://avatars.githubusercontent.com/u/5266592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymadbrain","html_url":"https://github.com/tonymadbrain","followers_url":"https://api.github.com/users/tonymadbrain/followers","following_url":"https://api.github.com/users/tonymadbrain/following{/other_user}","gists_url":"https://api.github.com/users/tonymadbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymadbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymadbrain/subscriptions","organizations_url":"https://api.github.com/users/tonymadbrain/orgs","repos_url":"https://api.github.com/users/tonymadbrain/repos","events_url":"https://api.github.com/users/tonymadbrain/events{/privacy}","received_events_url":"https://api.github.com/users/tonymadbrain/received_events","type":"User","site_admin":false},"body":"* Переделал создание и редактирование ответов на JSON\r\n* Добавил голосование за вопросы ответы","created_at":"2015-05-09T22:46:59Z","updated_at":"2015-05-10T09:26:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86177c08494e304d47de2430290b4ec6401167bc","assignee":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","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},"milestone":{"url":"https://api.github.com/repos/tonymadbrain/qna/milestones/4","html_url":"https://github.com/tonymadbrain/qna/milestones/4%20%D1%8D%D1%82%D0%B0%D0%BF","labels_url":"https://api.github.com/repos/tonymadbrain/qna/milestones/4/labels","id":1015956,"number":4,"title":"4 этап","description":"","creator":{"login":"tonymadbrain","id":5266592,"avatar_url":"https://avatars.githubusercontent.com/u/5266592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymadbrain","html_url":"https://github.com/tonymadbrain","followers_url":"https://api.github.com/users/tonymadbrain/followers","following_url":"https://api.github.com/users/tonymadbrain/following{/other_user}","gists_url":"https://api.github.com/users/tonymadbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymadbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymadbrain/subscriptions","organizations_url":"https://api.github.com/users/tonymadbrain/orgs","repos_url":"https://api.github.com/users/tonymadbrain/repos","events_url":"https://api.github.com/users/tonymadbrain/events{/privacy}","received_events_url":"https://api.github.com/users/tonymadbrain/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2015-03-11T06:51:57Z","updated_at":"2015-05-09T22:48:22Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/tonymadbrain/qna/pulls/30/commits","review_comments_url":"https://api.github.com/repos/tonymadbrain/qna/pulls/30/comments","review_comment_url":"https://api.github.com/repos/tonymadbrain/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tonymadbrain/qna/issues/30/comments","statuses_url":"https://api.github.com/repos/tonymadbrain/qna/statuses/e5f0ea6b017723ff1480dc66e1aef38a18427851","head":{"label":"tonymadbrain:task9","ref":"task9","sha":"e5f0ea6b017723ff1480dc66e1aef38a18427851","user":{"login":"tonymadbrain","id":5266592,"avatar_url":"https://avatars.githubusercontent.com/u/5266592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymadbrain","html_url":"https://github.com/tonymadbrain","followers_url":"https://api.github.com/users/tonymadbrain/followers","following_url":"https://api.github.com/users/tonymadbrain/following{/other_user}","gists_url":"https://api.github.com/users/tonymadbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymadbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymadbrain/subscriptions","organizations_url":"https://api.github.com/users/tonymadbrain/orgs","repos_url":"https://api.github.com/users/tonymadbrain/repos","events_url":"https://api.github.com/users/tonymadbrain/events{/privacy}","received_events_url":"https://api.github.com/users/tonymadbrain/received_events","type":"User","site_admin":false},"repo":{"id":32002390,"name":"qna","full_name":"tonymadbrain/qna","owner":{"login":"tonymadbrain","id":5266592,"avatar_url":"https://avatars.githubusercontent.com/u/5266592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymadbrain","html_url":"https://github.com/tonymadbrain","followers_url":"https://api.github.com/users/tonymadbrain/followers","following_url":"https://api.github.com/users/tonymadbrain/following{/other_user}","gists_url":"https://api.github.com/users/tonymadbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymadbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymadbrain/subscriptions","organizations_url":"https://api.github.com/users/tonymadbrain/orgs","repos_url":"https://api.github.com/users/tonymadbrain/repos","events_url":"https://api.github.com/users/tonymadbrain/events{/privacy}","received_events_url":"https://api.github.com/users/tonymadbrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tonymadbrain/qna","description":"","fork":false,"url":"https://api.github.com/repos/tonymadbrain/qna","forks_url":"https://api.github.com/repos/tonymadbrain/qna/forks","keys_url":"https://api.github.com/repos/tonymadbrain/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tonymadbrain/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tonymadbrain/qna/teams","hooks_url":"https://api.github.com/repos/tonymadbrain/qna/hooks","issue_events_url":"https://api.github.com/repos/tonymadbrain/qna/issues/events{/number}","events_url":"https://api.github.com/repos/tonymadbrain/qna/events","assignees_url":"https://api.github.com/repos/tonymadbrain/qna/assignees{/user}","branches_url":"https://api.github.com/repos/tonymadbrain/qna/branches{/branch}","tags_url":"https://api.github.com/repos/tonymadbrain/qna/tags","blobs_url":"https://api.github.com/repos/tonymadbrain/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tonymadbrain/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tonymadbrain/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/tonymadbrain/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tonymadbrain/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/tonymadbrain/qna/languages","stargazers_url":"https://api.github.com/repos/tonymadbrain/qna/stargazers","contributors_url":"https://api.github.com/repos/tonymadbrain/qna/contributors","subscribers_url":"https://api.github.com/repos/tonymadbrain/qna/subscribers","subscription_url":"https://api.github.com/repos/tonymadbrain/qna/subscription","commits_url":"https://api.github.com/repos/tonymadbrain/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/tonymadbrain/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/tonymadbrain/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/tonymadbrain/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/tonymadbrain/qna/contents/{+path}","compare_url":"https://api.github.com/repos/tonymadbrain/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tonymadbrain/qna/merges","archive_url":"https://api.github.com/repos/tonymadbrain/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tonymadbrain/qna/downloads","issues_url":"https://api.github.com/repos/tonymadbrain/qna/issues{/number}","pulls_url":"https://api.github.com/repos/tonymadbrain/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/tonymadbrain/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/tonymadbrain/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tonymadbrain/qna/labels{/name}","releases_url":"https://api.github.com/repos/tonymadbrain/qna/releases{/id}","created_at":"2015-03-11T06:37:48Z","updated_at":"2015-04-21T10:40:02Z","pushed_at":"2015-05-09T22:47:00Z","git_url":"git://github.com/tonymadbrain/qna.git","ssh_url":"git@github.com:tonymadbrain/qna.git","clone_url":"https://github.com/tonymadbrain/qna.git","svn_url":"https://github.com/tonymadbrain/qna","homepage":null,"size":740,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"tonymadbrain:master","ref":"master","sha":"2f758b1816fd74fbbf1a9a71c242e130ef4a8435","user":{"login":"tonymadbrain","id":5266592,"avatar_url":"https://avatars.githubusercontent.com/u/5266592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymadbrain","html_url":"https://github.com/tonymadbrain","followers_url":"https://api.github.com/users/tonymadbrain/followers","following_url":"https://api.github.com/users/tonymadbrain/following{/other_user}","gists_url":"https://api.github.com/users/tonymadbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymadbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymadbrain/subscriptions","organizations_url":"https://api.github.com/users/tonymadbrain/orgs","repos_url":"https://api.github.com/users/tonymadbrain/repos","events_url":"https://api.github.com/users/tonymadbrain/events{/privacy}","received_events_url":"https://api.github.com/users/tonymadbrain/received_events","type":"User","site_admin":false},"repo":{"id":32002390,"name":"qna","full_name":"tonymadbrain/qna","owner":{"login":"tonymadbrain","id":5266592,"avatar_url":"https://avatars.githubusercontent.com/u/5266592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymadbrain","html_url":"https://github.com/tonymadbrain","followers_url":"https://api.github.com/users/tonymadbrain/followers","following_url":"https://api.github.com/users/tonymadbrain/following{/other_user}","gists_url":"https://api.github.com/users/tonymadbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymadbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymadbrain/subscriptions","organizations_url":"https://api.github.com/users/tonymadbrain/orgs","repos_url":"https://api.github.com/users/tonymadbrain/repos","events_url":"https://api.github.com/users/tonymadbrain/events{/privacy}","received_events_url":"https://api.github.com/users/tonymadbrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tonymadbrain/qna","description":"","fork":false,"url":"https://api.github.com/repos/tonymadbrain/qna","forks_url":"https://api.github.com/repos/tonymadbrain/qna/forks","keys_url":"https://api.github.com/repos/tonymadbrain/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tonymadbrain/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tonymadbrain/qna/teams","hooks_url":"https://api.github.com/repos/tonymadbrain/qna/hooks","issue_events_url":"https://api.github.com/repos/tonymadbrain/qna/issues/events{/number}","events_url":"https://api.github.com/repos/tonymadbrain/qna/events","assignees_url":"https://api.github.com/repos/tonymadbrain/qna/assignees{/user}","branches_url":"https://api.github.com/repos/tonymadbrain/qna/branches{/branch}","tags_url":"https://api.github.com/repos/tonymadbrain/qna/tags","blobs_url":"https://api.github.com/repos/tonymadbrain/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tonymadbrain/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tonymadbrain/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/tonymadbrain/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tonymadbrain/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/tonymadbrain/qna/languages","stargazers_url":"https://api.github.com/repos/tonymadbrain/qna/stargazers","contributors_url":"https://api.github.com/repos/tonymadbrain/qna/contributors","subscribers_url":"https://api.github.com/repos/tonymadbrain/qna/subscribers","subscription_url":"https://api.github.com/repos/tonymadbrain/qna/subscription","commits_url":"https://api.github.com/repos/tonymadbrain/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/tonymadbrain/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/tonymadbrain/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/tonymadbrain/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/tonymadbrain/qna/contents/{+path}","compare_url":"https://api.github.com/repos/tonymadbrain/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tonymadbrain/qna/merges","archive_url":"https://api.github.com/repos/tonymadbrain/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tonymadbrain/qna/downloads","issues_url":"https://api.github.com/repos/tonymadbrain/qna/issues{/number}","pulls_url":"https://api.github.com/repos/tonymadbrain/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/tonymadbrain/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/tonymadbrain/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tonymadbrain/qna/labels{/name}","releases_url":"https://api.github.com/repos/tonymadbrain/qna/releases{/id}","created_at":"2015-03-11T06:37:48Z","updated_at":"2015-04-21T10:40:02Z","pushed_at":"2015-05-09T22:47:00Z","git_url":"git://github.com/tonymadbrain/qna.git","ssh_url":"git@github.com:tonymadbrain/qna.git","clone_url":"https://github.com/tonymadbrain/qna.git","svn_url":"https://github.com/tonymadbrain/qna","homepage":null,"size":740,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tonymadbrain/qna/pulls/30"},"html":{"href":"https://github.com/tonymadbrain/qna/pull/30"},"issue":{"href":"https://api.github.com/repos/tonymadbrain/qna/issues/30"},"comments":{"href":"https://api.github.com/repos/tonymadbrain/qna/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/tonymadbrain/qna/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/tonymadbrain/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tonymadbrain/qna/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/tonymadbrain/qna/statuses/e5f0ea6b017723ff1480dc66e1aef38a18427851"}}}}