{"action":"created","comment":{"url":"https://api.github.com/repos/Exegor/railway_application/pulls/comments/71988603","id":71988603,"diff_hunk":"@@ -61,6 +61,24 @@ def destroy\n     end\n   end\n \n+  def update_position\n+    @route = Route.find(params[:route_id])","path":"app/controllers/railway_stations_controller.rb","position":12,"original_position":12,"commit_id":"9a510fd6ec1cd7ba74fac31075d493f9c21e9721","original_commit_id":"9a510fd6ec1cd7ba74fac31075d493f9c21e9721","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":"Можно вынести эту строчку в before_action, чтобы избежать дублирования кода","created_at":"2016-07-24T13:27:37Z","updated_at":"2016-07-24T13:27:37Z","html_url":"https://github.com/Exegor/railway_application/pull/3#discussion_r71988603","pull_request_url":"https://api.github.com/repos/Exegor/railway_application/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Exegor/railway_application/pulls/comments/71988603"},"html":{"href":"https://github.com/Exegor/railway_application/pull/3#discussion_r71988603"},"pull_request":{"href":"https://api.github.com/repos/Exegor/railway_application/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Exegor/railway_application/pulls/3","id":77640778,"html_url":"https://github.com/Exegor/railway_application/pull/3","diff_url":"https://github.com/Exegor/railway_application/pull/3.diff","patch_url":"https://github.com/Exegor/railway_application/pull/3.patch","issue_url":"https://api.github.com/repos/Exegor/railway_application/issues/3","number":3,"state":"open","locked":false,"title":"Add sort station","user":{"login":"Exegor","id":5019877,"avatar_url":"https://avatars.githubusercontent.com/u/5019877?v=3","gravatar_id":"","url":"https://api.github.com/users/Exegor","html_url":"https://github.com/Exegor","followers_url":"https://api.github.com/users/Exegor/followers","following_url":"https://api.github.com/users/Exegor/following{/other_user}","gists_url":"https://api.github.com/users/Exegor/gists{/gist_id}","starred_url":"https://api.github.com/users/Exegor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exegor/subscriptions","organizations_url":"https://api.github.com/users/Exegor/orgs","repos_url":"https://api.github.com/users/Exegor/repos","events_url":"https://api.github.com/users/Exegor/events{/privacy}","received_events_url":"https://api.github.com/users/Exegor/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-15T16:14:49Z","updated_at":"2016-07-24T13:27:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd347299c53e6b23d52ad09aed6df5d381cf5539","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Exegor/railway_application/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Exegor/railway_application/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Exegor/railway_application/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Exegor/railway_application/issues/3/comments","statuses_url":"https://api.github.com/repos/Exegor/railway_application/statuses/9a510fd6ec1cd7ba74fac31075d493f9c21e9721","head":{"label":"Exegor:Lesson16","ref":"Lesson16","sha":"9a510fd6ec1cd7ba74fac31075d493f9c21e9721","user":{"login":"Exegor","id":5019877,"avatar_url":"https://avatars.githubusercontent.com/u/5019877?v=3","gravatar_id":"","url":"https://api.github.com/users/Exegor","html_url":"https://github.com/Exegor","followers_url":"https://api.github.com/users/Exegor/followers","following_url":"https://api.github.com/users/Exegor/following{/other_user}","gists_url":"https://api.github.com/users/Exegor/gists{/gist_id}","starred_url":"https://api.github.com/users/Exegor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exegor/subscriptions","organizations_url":"https://api.github.com/users/Exegor/orgs","repos_url":"https://api.github.com/users/Exegor/repos","events_url":"https://api.github.com/users/Exegor/events{/privacy}","received_events_url":"https://api.github.com/users/Exegor/received_events","type":"User","site_admin":false},"repo":{"id":61311799,"name":"railway_application","full_name":"Exegor/railway_application","owner":{"login":"Exegor","id":5019877,"avatar_url":"https://avatars.githubusercontent.com/u/5019877?v=3","gravatar_id":"","url":"https://api.github.com/users/Exegor","html_url":"https://github.com/Exegor","followers_url":"https://api.github.com/users/Exegor/followers","following_url":"https://api.github.com/users/Exegor/following{/other_user}","gists_url":"https://api.github.com/users/Exegor/gists{/gist_id}","starred_url":"https://api.github.com/users/Exegor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exegor/subscriptions","organizations_url":"https://api.github.com/users/Exegor/orgs","repos_url":"https://api.github.com/users/Exegor/repos","events_url":"https://api.github.com/users/Exegor/events{/privacy}","received_events_url":"https://api.github.com/users/Exegor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Exegor/railway_application","description":"","fork":false,"url":"https://api.github.com/repos/Exegor/railway_application","forks_url":"https://api.github.com/repos/Exegor/railway_application/forks","keys_url":"https://api.github.com/repos/Exegor/railway_application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Exegor/railway_application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Exegor/railway_application/teams","hooks_url":"https://api.github.com/repos/Exegor/railway_application/hooks","issue_events_url":"https://api.github.com/repos/Exegor/railway_application/issues/events{/number}","events_url":"https://api.github.com/repos/Exegor/railway_application/events","assignees_url":"https://api.github.com/repos/Exegor/railway_application/assignees{/user}","branches_url":"https://api.github.com/repos/Exegor/railway_application/branches{/branch}","tags_url":"https://api.github.com/repos/Exegor/railway_application/tags","blobs_url":"https://api.github.com/repos/Exegor/railway_application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Exegor/railway_application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Exegor/railway_application/git/refs{/sha}","trees_url":"https://api.github.com/repos/Exegor/railway_application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Exegor/railway_application/statuses/{sha}","languages_url":"https://api.github.com/repos/Exegor/railway_application/languages","stargazers_url":"https://api.github.com/repos/Exegor/railway_application/stargazers","contributors_url":"https://api.github.com/repos/Exegor/railway_application/contributors","subscribers_url":"https://api.github.com/repos/Exegor/railway_application/subscribers","subscription_url":"https://api.github.com/repos/Exegor/railway_application/subscription","commits_url":"https://api.github.com/repos/Exegor/railway_application/commits{/sha}","git_commits_url":"https://api.github.com/repos/Exegor/railway_application/git/commits{/sha}","comments_url":"https://api.github.com/repos/Exegor/railway_application/comments{/number}","issue_comment_url":"https://api.github.com/repos/Exegor/railway_application/issues/comments{/number}","contents_url":"https://api.github.com/repos/Exegor/railway_application/contents/{+path}","compare_url":"https://api.github.com/repos/Exegor/railway_application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Exegor/railway_application/merges","archive_url":"https://api.github.com/repos/Exegor/railway_application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Exegor/railway_application/downloads","issues_url":"https://api.github.com/repos/Exegor/railway_application/issues{/number}","pulls_url":"https://api.github.com/repos/Exegor/railway_application/pulls{/number}","milestones_url":"https://api.github.com/repos/Exegor/railway_application/milestones{/number}","notifications_url":"https://api.github.com/repos/Exegor/railway_application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Exegor/railway_application/labels{/name}","releases_url":"https://api.github.com/repos/Exegor/railway_application/releases{/id}","deployments_url":"https://api.github.com/repos/Exegor/railway_application/deployments","created_at":"2016-06-16T17:08:46Z","updated_at":"2016-06-16T17:09:05Z","pushed_at":"2016-07-24T03:22:39Z","git_url":"git://github.com/Exegor/railway_application.git","ssh_url":"git@github.com:Exegor/railway_application.git","clone_url":"https://github.com/Exegor/railway_application.git","svn_url":"https://github.com/Exegor/railway_application","homepage":null,"size":75,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Exegor:master","ref":"master","sha":"518500d721d4e0c7b3dc589dac3d691e4fec3537","user":{"login":"Exegor","id":5019877,"avatar_url":"https://avatars.githubusercontent.com/u/5019877?v=3","gravatar_id":"","url":"https://api.github.com/users/Exegor","html_url":"https://github.com/Exegor","followers_url":"https://api.github.com/users/Exegor/followers","following_url":"https://api.github.com/users/Exegor/following{/other_user}","gists_url":"https://api.github.com/users/Exegor/gists{/gist_id}","starred_url":"https://api.github.com/users/Exegor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exegor/subscriptions","organizations_url":"https://api.github.com/users/Exegor/orgs","repos_url":"https://api.github.com/users/Exegor/repos","events_url":"https://api.github.com/users/Exegor/events{/privacy}","received_events_url":"https://api.github.com/users/Exegor/received_events","type":"User","site_admin":false},"repo":{"id":61311799,"name":"railway_application","full_name":"Exegor/railway_application","owner":{"login":"Exegor","id":5019877,"avatar_url":"https://avatars.githubusercontent.com/u/5019877?v=3","gravatar_id":"","url":"https://api.github.com/users/Exegor","html_url":"https://github.com/Exegor","followers_url":"https://api.github.com/users/Exegor/followers","following_url":"https://api.github.com/users/Exegor/following{/other_user}","gists_url":"https://api.github.com/users/Exegor/gists{/gist_id}","starred_url":"https://api.github.com/users/Exegor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exegor/subscriptions","organizations_url":"https://api.github.com/users/Exegor/orgs","repos_url":"https://api.github.com/users/Exegor/repos","events_url":"https://api.github.com/users/Exegor/events{/privacy}","received_events_url":"https://api.github.com/users/Exegor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Exegor/railway_application","description":"","fork":false,"url":"https://api.github.com/repos/Exegor/railway_application","forks_url":"https://api.github.com/repos/Exegor/railway_application/forks","keys_url":"https://api.github.com/repos/Exegor/railway_application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Exegor/railway_application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Exegor/railway_application/teams","hooks_url":"https://api.github.com/repos/Exegor/railway_application/hooks","issue_events_url":"https://api.github.com/repos/Exegor/railway_application/issues/events{/number}","events_url":"https://api.github.com/repos/Exegor/railway_application/events","assignees_url":"https://api.github.com/repos/Exegor/railway_application/assignees{/user}","branches_url":"https://api.github.com/repos/Exegor/railway_application/branches{/branch}","tags_url":"https://api.github.com/repos/Exegor/railway_application/tags","blobs_url":"https://api.github.com/repos/Exegor/railway_application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Exegor/railway_application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Exegor/railway_application/git/refs{/sha}","trees_url":"https://api.github.com/repos/Exegor/railway_application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Exegor/railway_application/statuses/{sha}","languages_url":"https://api.github.com/repos/Exegor/railway_application/languages","stargazers_url":"https://api.github.com/repos/Exegor/railway_application/stargazers","contributors_url":"https://api.github.com/repos/Exegor/railway_application/contributors","subscribers_url":"https://api.github.com/repos/Exegor/railway_application/subscribers","subscription_url":"https://api.github.com/repos/Exegor/railway_application/subscription","commits_url":"https://api.github.com/repos/Exegor/railway_application/commits{/sha}","git_commits_url":"https://api.github.com/repos/Exegor/railway_application/git/commits{/sha}","comments_url":"https://api.github.com/repos/Exegor/railway_application/comments{/number}","issue_comment_url":"https://api.github.com/repos/Exegor/railway_application/issues/comments{/number}","contents_url":"https://api.github.com/repos/Exegor/railway_application/contents/{+path}","compare_url":"https://api.github.com/repos/Exegor/railway_application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Exegor/railway_application/merges","archive_url":"https://api.github.com/repos/Exegor/railway_application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Exegor/railway_application/downloads","issues_url":"https://api.github.com/repos/Exegor/railway_application/issues{/number}","pulls_url":"https://api.github.com/repos/Exegor/railway_application/pulls{/number}","milestones_url":"https://api.github.com/repos/Exegor/railway_application/milestones{/number}","notifications_url":"https://api.github.com/repos/Exegor/railway_application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Exegor/railway_application/labels{/name}","releases_url":"https://api.github.com/repos/Exegor/railway_application/releases{/id}","deployments_url":"https://api.github.com/repos/Exegor/railway_application/deployments","created_at":"2016-06-16T17:08:46Z","updated_at":"2016-06-16T17:09:05Z","pushed_at":"2016-07-24T03:22:39Z","git_url":"git://github.com/Exegor/railway_application.git","ssh_url":"git@github.com:Exegor/railway_application.git","clone_url":"https://github.com/Exegor/railway_application.git","svn_url":"https://github.com/Exegor/railway_application","homepage":null,"size":75,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Exegor/railway_application/pulls/3"},"html":{"href":"https://github.com/Exegor/railway_application/pull/3"},"issue":{"href":"https://api.github.com/repos/Exegor/railway_application/issues/3"},"comments":{"href":"https://api.github.com/repos/Exegor/railway_application/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Exegor/railway_application/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Exegor/railway_application/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Exegor/railway_application/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Exegor/railway_application/statuses/9a510fd6ec1cd7ba74fac31075d493f9c21e9721"}}}}
{"actor":{"display_login":"vkurennov"}}