{"action":"created","comment":{"url":"https://api.github.com/repos/Runae/rwstation/pulls/comments/71062335","id":71062335,"diff_hunk":"@@ -2,4 +2,10 @@ class RailwayStation < ActiveRecord::Base\n   has_many :trains\n   has_many :railway_stations_routes\n   has_many :routes, through: :railway_stations_routes\n+\n+  #scope :ordered, -> { joins(:railway_stations_routes).where([\"railway_stations_routes.route_id = ?\", route]).order(:num) }","path":"app/models/railway_station.rb","position":5,"original_position":5,"commit_id":"0ff54d2f0942184e2421d0dae9e65535d03d3d95","original_commit_id":"0ff54d2f0942184e2421d0dae9e65535d03d3d95","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":"Ок, это пока пропустим, сделаешь, как показано в следующем уроке","created_at":"2016-07-16T07:07:47Z","updated_at":"2016-07-16T07:07:47Z","html_url":"https://github.com/Runae/rwstation/pull/2#discussion_r71062335","pull_request_url":"https://api.github.com/repos/Runae/rwstation/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Runae/rwstation/pulls/comments/71062335"},"html":{"href":"https://github.com/Runae/rwstation/pull/2#discussion_r71062335"},"pull_request":{"href":"https://api.github.com/repos/Runae/rwstation/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Runae/rwstation/pulls/2","id":77679092,"html_url":"https://github.com/Runae/rwstation/pull/2","diff_url":"https://github.com/Runae/rwstation/pull/2.diff","patch_url":"https://github.com/Runae/rwstation/pull/2.patch","issue_url":"https://api.github.com/repos/Runae/rwstation/issues/2","number":2,"state":"open","locked":false,"title":"Lesson15","user":{"login":"Runae","id":18416889,"avatar_url":"https://avatars.githubusercontent.com/u/18416889?v=3","gravatar_id":"","url":"https://api.github.com/users/Runae","html_url":"https://github.com/Runae","followers_url":"https://api.github.com/users/Runae/followers","following_url":"https://api.github.com/users/Runae/following{/other_user}","gists_url":"https://api.github.com/users/Runae/gists{/gist_id}","starred_url":"https://api.github.com/users/Runae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runae/subscriptions","organizations_url":"https://api.github.com/users/Runae/orgs","repos_url":"https://api.github.com/users/Runae/repos","events_url":"https://api.github.com/users/Runae/events{/privacy}","received_events_url":"https://api.github.com/users/Runae/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-15T21:11:38Z","updated_at":"2016-07-16T07:07:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"067113307b9485a2cff267d75734446bdd765080","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Runae/rwstation/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Runae/rwstation/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Runae/rwstation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Runae/rwstation/issues/2/comments","statuses_url":"https://api.github.com/repos/Runae/rwstation/statuses/0ff54d2f0942184e2421d0dae9e65535d03d3d95","head":{"label":"Runae:Lesson15","ref":"Lesson15","sha":"0ff54d2f0942184e2421d0dae9e65535d03d3d95","user":{"login":"Runae","id":18416889,"avatar_url":"https://avatars.githubusercontent.com/u/18416889?v=3","gravatar_id":"","url":"https://api.github.com/users/Runae","html_url":"https://github.com/Runae","followers_url":"https://api.github.com/users/Runae/followers","following_url":"https://api.github.com/users/Runae/following{/other_user}","gists_url":"https://api.github.com/users/Runae/gists{/gist_id}","starred_url":"https://api.github.com/users/Runae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runae/subscriptions","organizations_url":"https://api.github.com/users/Runae/orgs","repos_url":"https://api.github.com/users/Runae/repos","events_url":"https://api.github.com/users/Runae/events{/privacy}","received_events_url":"https://api.github.com/users/Runae/received_events","type":"User","site_admin":false},"repo":{"id":60359975,"name":"rwstation","full_name":"Runae/rwstation","owner":{"login":"Runae","id":18416889,"avatar_url":"https://avatars.githubusercontent.com/u/18416889?v=3","gravatar_id":"","url":"https://api.github.com/users/Runae","html_url":"https://github.com/Runae","followers_url":"https://api.github.com/users/Runae/followers","following_url":"https://api.github.com/users/Runae/following{/other_user}","gists_url":"https://api.github.com/users/Runae/gists{/gist_id}","starred_url":"https://api.github.com/users/Runae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runae/subscriptions","organizations_url":"https://api.github.com/users/Runae/orgs","repos_url":"https://api.github.com/users/Runae/repos","events_url":"https://api.github.com/users/Runae/events{/privacy}","received_events_url":"https://api.github.com/users/Runae/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Runae/rwstation","description":null,"fork":false,"url":"https://api.github.com/repos/Runae/rwstation","forks_url":"https://api.github.com/repos/Runae/rwstation/forks","keys_url":"https://api.github.com/repos/Runae/rwstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Runae/rwstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Runae/rwstation/teams","hooks_url":"https://api.github.com/repos/Runae/rwstation/hooks","issue_events_url":"https://api.github.com/repos/Runae/rwstation/issues/events{/number}","events_url":"https://api.github.com/repos/Runae/rwstation/events","assignees_url":"https://api.github.com/repos/Runae/rwstation/assignees{/user}","branches_url":"https://api.github.com/repos/Runae/rwstation/branches{/branch}","tags_url":"https://api.github.com/repos/Runae/rwstation/tags","blobs_url":"https://api.github.com/repos/Runae/rwstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Runae/rwstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Runae/rwstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Runae/rwstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Runae/rwstation/statuses/{sha}","languages_url":"https://api.github.com/repos/Runae/rwstation/languages","stargazers_url":"https://api.github.com/repos/Runae/rwstation/stargazers","contributors_url":"https://api.github.com/repos/Runae/rwstation/contributors","subscribers_url":"https://api.github.com/repos/Runae/rwstation/subscribers","subscription_url":"https://api.github.com/repos/Runae/rwstation/subscription","commits_url":"https://api.github.com/repos/Runae/rwstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Runae/rwstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Runae/rwstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Runae/rwstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Runae/rwstation/contents/{+path}","compare_url":"https://api.github.com/repos/Runae/rwstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Runae/rwstation/merges","archive_url":"https://api.github.com/repos/Runae/rwstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Runae/rwstation/downloads","issues_url":"https://api.github.com/repos/Runae/rwstation/issues{/number}","pulls_url":"https://api.github.com/repos/Runae/rwstation/pulls{/number}","milestones_url":"https://api.github.com/repos/Runae/rwstation/milestones{/number}","notifications_url":"https://api.github.com/repos/Runae/rwstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Runae/rwstation/labels{/name}","releases_url":"https://api.github.com/repos/Runae/rwstation/releases{/id}","deployments_url":"https://api.github.com/repos/Runae/rwstation/deployments","created_at":"2016-06-03T15:54:27Z","updated_at":"2016-06-03T15:54:34Z","pushed_at":"2016-07-15T21:11:38Z","git_url":"git://github.com/Runae/rwstation.git","ssh_url":"git@github.com:Runae/rwstation.git","clone_url":"https://github.com/Runae/rwstation.git","svn_url":"https://github.com/Runae/rwstation","homepage":null,"size":58,"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":"Runae:master","ref":"master","sha":"6344b2d6aa85efa90d650ea96f5b5d8a5d169922","user":{"login":"Runae","id":18416889,"avatar_url":"https://avatars.githubusercontent.com/u/18416889?v=3","gravatar_id":"","url":"https://api.github.com/users/Runae","html_url":"https://github.com/Runae","followers_url":"https://api.github.com/users/Runae/followers","following_url":"https://api.github.com/users/Runae/following{/other_user}","gists_url":"https://api.github.com/users/Runae/gists{/gist_id}","starred_url":"https://api.github.com/users/Runae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runae/subscriptions","organizations_url":"https://api.github.com/users/Runae/orgs","repos_url":"https://api.github.com/users/Runae/repos","events_url":"https://api.github.com/users/Runae/events{/privacy}","received_events_url":"https://api.github.com/users/Runae/received_events","type":"User","site_admin":false},"repo":{"id":60359975,"name":"rwstation","full_name":"Runae/rwstation","owner":{"login":"Runae","id":18416889,"avatar_url":"https://avatars.githubusercontent.com/u/18416889?v=3","gravatar_id":"","url":"https://api.github.com/users/Runae","html_url":"https://github.com/Runae","followers_url":"https://api.github.com/users/Runae/followers","following_url":"https://api.github.com/users/Runae/following{/other_user}","gists_url":"https://api.github.com/users/Runae/gists{/gist_id}","starred_url":"https://api.github.com/users/Runae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runae/subscriptions","organizations_url":"https://api.github.com/users/Runae/orgs","repos_url":"https://api.github.com/users/Runae/repos","events_url":"https://api.github.com/users/Runae/events{/privacy}","received_events_url":"https://api.github.com/users/Runae/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Runae/rwstation","description":null,"fork":false,"url":"https://api.github.com/repos/Runae/rwstation","forks_url":"https://api.github.com/repos/Runae/rwstation/forks","keys_url":"https://api.github.com/repos/Runae/rwstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Runae/rwstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Runae/rwstation/teams","hooks_url":"https://api.github.com/repos/Runae/rwstation/hooks","issue_events_url":"https://api.github.com/repos/Runae/rwstation/issues/events{/number}","events_url":"https://api.github.com/repos/Runae/rwstation/events","assignees_url":"https://api.github.com/repos/Runae/rwstation/assignees{/user}","branches_url":"https://api.github.com/repos/Runae/rwstation/branches{/branch}","tags_url":"https://api.github.com/repos/Runae/rwstation/tags","blobs_url":"https://api.github.com/repos/Runae/rwstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Runae/rwstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Runae/rwstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Runae/rwstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Runae/rwstation/statuses/{sha}","languages_url":"https://api.github.com/repos/Runae/rwstation/languages","stargazers_url":"https://api.github.com/repos/Runae/rwstation/stargazers","contributors_url":"https://api.github.com/repos/Runae/rwstation/contributors","subscribers_url":"https://api.github.com/repos/Runae/rwstation/subscribers","subscription_url":"https://api.github.com/repos/Runae/rwstation/subscription","commits_url":"https://api.github.com/repos/Runae/rwstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Runae/rwstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Runae/rwstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Runae/rwstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Runae/rwstation/contents/{+path}","compare_url":"https://api.github.com/repos/Runae/rwstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Runae/rwstation/merges","archive_url":"https://api.github.com/repos/Runae/rwstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Runae/rwstation/downloads","issues_url":"https://api.github.com/repos/Runae/rwstation/issues{/number}","pulls_url":"https://api.github.com/repos/Runae/rwstation/pulls{/number}","milestones_url":"https://api.github.com/repos/Runae/rwstation/milestones{/number}","notifications_url":"https://api.github.com/repos/Runae/rwstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Runae/rwstation/labels{/name}","releases_url":"https://api.github.com/repos/Runae/rwstation/releases{/id}","deployments_url":"https://api.github.com/repos/Runae/rwstation/deployments","created_at":"2016-06-03T15:54:27Z","updated_at":"2016-06-03T15:54:34Z","pushed_at":"2016-07-15T21:11:38Z","git_url":"git://github.com/Runae/rwstation.git","ssh_url":"git@github.com:Runae/rwstation.git","clone_url":"https://github.com/Runae/rwstation.git","svn_url":"https://github.com/Runae/rwstation","homepage":null,"size":58,"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/Runae/rwstation/pulls/2"},"html":{"href":"https://github.com/Runae/rwstation/pull/2"},"issue":{"href":"https://api.github.com/repos/Runae/rwstation/issues/2"},"comments":{"href":"https://api.github.com/repos/Runae/rwstation/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Runae/rwstation/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Runae/rwstation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Runae/rwstation/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Runae/rwstation/statuses/0ff54d2f0942184e2421d0dae9e65535d03d3d95"}}}}
{"actor":{"display_login":"vkurennov"}}