{"action":"created","comment":{"url":"https://api.github.com/repos/yogadeveloper/railgun/pulls/comments/68542217","id":68542217,"diff_hunk":"@@ -0,0 +1,26 @@\n+class Api::V1::ProfilesController < ApplicationController\n+  skip_authorization_check\n+\n+  before_action :doorkeeper_authorize!\n+  before_action :except_current_user, only: :index\n+\n+  respond_to :json\n+\n+  def me\n+    respond_with current_resource_owner\n+  end\n+\n+  def index\n+    respond_with @profiles\n+  end\n+\n+  protected\n+\n+  def except_current_user","path":"app/controllers/api/v1/profiles_controller.rb","position":19,"original_position":19,"commit_id":"e09252d58ae698c1a31db7d1c4c42e3c4c7d0331","original_commit_id":"e09252d58ae698c1a31db7d1c4c42e3c4c7d0331","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-06-27T08:53:15Z","updated_at":"2016-06-27T08:53:15Z","html_url":"https://github.com/yogadeveloper/railgun/pull/11#discussion_r68542217","pull_request_url":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/yogadeveloper/railgun/pulls/comments/68542217"},"html":{"href":"https://github.com/yogadeveloper/railgun/pull/11#discussion_r68542217"},"pull_request":{"href":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11","id":75257781,"html_url":"https://github.com/yogadeveloper/railgun/pull/11","diff_url":"https://github.com/yogadeveloper/railgun/pull/11.diff","patch_url":"https://github.com/yogadeveloper/railgun/pull/11.patch","issue_url":"https://api.github.com/repos/yogadeveloper/railgun/issues/11","number":11,"state":"open","locked":false,"title":"add api","user":{"login":"yogadeveloper","id":18226239,"avatar_url":"https://avatars.githubusercontent.com/u/18226239?v=3","gravatar_id":"","url":"https://api.github.com/users/yogadeveloper","html_url":"https://github.com/yogadeveloper","followers_url":"https://api.github.com/users/yogadeveloper/followers","following_url":"https://api.github.com/users/yogadeveloper/following{/other_user}","gists_url":"https://api.github.com/users/yogadeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/yogadeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogadeveloper/subscriptions","organizations_url":"https://api.github.com/users/yogadeveloper/orgs","repos_url":"https://api.github.com/users/yogadeveloper/repos","events_url":"https://api.github.com/users/yogadeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/yogadeveloper/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-27T05:18:04Z","updated_at":"2016-06-27T08:53:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c31adde1875de380f07db2436f988b329909830a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11/commits","review_comments_url":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11/comments","review_comment_url":"https://api.github.com/repos/yogadeveloper/railgun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yogadeveloper/railgun/issues/11/comments","statuses_url":"https://api.github.com/repos/yogadeveloper/railgun/statuses/e09252d58ae698c1a31db7d1c4c42e3c4c7d0331","head":{"label":"yogadeveloper:14-Lesson-API-1","ref":"14-Lesson-API-1","sha":"e09252d58ae698c1a31db7d1c4c42e3c4c7d0331","user":{"login":"yogadeveloper","id":18226239,"avatar_url":"https://avatars.githubusercontent.com/u/18226239?v=3","gravatar_id":"","url":"https://api.github.com/users/yogadeveloper","html_url":"https://github.com/yogadeveloper","followers_url":"https://api.github.com/users/yogadeveloper/followers","following_url":"https://api.github.com/users/yogadeveloper/following{/other_user}","gists_url":"https://api.github.com/users/yogadeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/yogadeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogadeveloper/subscriptions","organizations_url":"https://api.github.com/users/yogadeveloper/orgs","repos_url":"https://api.github.com/users/yogadeveloper/repos","events_url":"https://api.github.com/users/yogadeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/yogadeveloper/received_events","type":"User","site_admin":false},"repo":{"id":57003872,"name":"railgun","full_name":"yogadeveloper/railgun","owner":{"login":"yogadeveloper","id":18226239,"avatar_url":"https://avatars.githubusercontent.com/u/18226239?v=3","gravatar_id":"","url":"https://api.github.com/users/yogadeveloper","html_url":"https://github.com/yogadeveloper","followers_url":"https://api.github.com/users/yogadeveloper/followers","following_url":"https://api.github.com/users/yogadeveloper/following{/other_user}","gists_url":"https://api.github.com/users/yogadeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/yogadeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogadeveloper/subscriptions","organizations_url":"https://api.github.com/users/yogadeveloper/orgs","repos_url":"https://api.github.com/users/yogadeveloper/repos","events_url":"https://api.github.com/users/yogadeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/yogadeveloper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yogadeveloper/railgun","description":"RailGun OverFlow app. This is my training project on Thinknetica","fork":false,"url":"https://api.github.com/repos/yogadeveloper/railgun","forks_url":"https://api.github.com/repos/yogadeveloper/railgun/forks","keys_url":"https://api.github.com/repos/yogadeveloper/railgun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yogadeveloper/railgun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yogadeveloper/railgun/teams","hooks_url":"https://api.github.com/repos/yogadeveloper/railgun/hooks","issue_events_url":"https://api.github.com/repos/yogadeveloper/railgun/issues/events{/number}","events_url":"https://api.github.com/repos/yogadeveloper/railgun/events","assignees_url":"https://api.github.com/repos/yogadeveloper/railgun/assignees{/user}","branches_url":"https://api.github.com/repos/yogadeveloper/railgun/branches{/branch}","tags_url":"https://api.github.com/repos/yogadeveloper/railgun/tags","blobs_url":"https://api.github.com/repos/yogadeveloper/railgun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yogadeveloper/railgun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yogadeveloper/railgun/git/refs{/sha}","trees_url":"https://api.github.com/repos/yogadeveloper/railgun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yogadeveloper/railgun/statuses/{sha}","languages_url":"https://api.github.com/repos/yogadeveloper/railgun/languages","stargazers_url":"https://api.github.com/repos/yogadeveloper/railgun/stargazers","contributors_url":"https://api.github.com/repos/yogadeveloper/railgun/contributors","subscribers_url":"https://api.github.com/repos/yogadeveloper/railgun/subscribers","subscription_url":"https://api.github.com/repos/yogadeveloper/railgun/subscription","commits_url":"https://api.github.com/repos/yogadeveloper/railgun/commits{/sha}","git_commits_url":"https://api.github.com/repos/yogadeveloper/railgun/git/commits{/sha}","comments_url":"https://api.github.com/repos/yogadeveloper/railgun/comments{/number}","issue_comment_url":"https://api.github.com/repos/yogadeveloper/railgun/issues/comments{/number}","contents_url":"https://api.github.com/repos/yogadeveloper/railgun/contents/{+path}","compare_url":"https://api.github.com/repos/yogadeveloper/railgun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yogadeveloper/railgun/merges","archive_url":"https://api.github.com/repos/yogadeveloper/railgun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yogadeveloper/railgun/downloads","issues_url":"https://api.github.com/repos/yogadeveloper/railgun/issues{/number}","pulls_url":"https://api.github.com/repos/yogadeveloper/railgun/pulls{/number}","milestones_url":"https://api.github.com/repos/yogadeveloper/railgun/milestones{/number}","notifications_url":"https://api.github.com/repos/yogadeveloper/railgun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yogadeveloper/railgun/labels{/name}","releases_url":"https://api.github.com/repos/yogadeveloper/railgun/releases{/id}","deployments_url":"https://api.github.com/repos/yogadeveloper/railgun/deployments","created_at":"2016-04-25T01:45:36Z","updated_at":"2016-04-25T06:27:22Z","pushed_at":"2016-06-27T05:18:04Z","git_url":"git://github.com/yogadeveloper/railgun.git","ssh_url":"git@github.com:yogadeveloper/railgun.git","clone_url":"https://github.com/yogadeveloper/railgun.git","svn_url":"https://github.com/yogadeveloper/railgun","homepage":"","size":186,"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":"yogadeveloper:master","ref":"master","sha":"9c649aa7c03a11af13aec5e8afd692cb9c8db875","user":{"login":"yogadeveloper","id":18226239,"avatar_url":"https://avatars.githubusercontent.com/u/18226239?v=3","gravatar_id":"","url":"https://api.github.com/users/yogadeveloper","html_url":"https://github.com/yogadeveloper","followers_url":"https://api.github.com/users/yogadeveloper/followers","following_url":"https://api.github.com/users/yogadeveloper/following{/other_user}","gists_url":"https://api.github.com/users/yogadeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/yogadeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogadeveloper/subscriptions","organizations_url":"https://api.github.com/users/yogadeveloper/orgs","repos_url":"https://api.github.com/users/yogadeveloper/repos","events_url":"https://api.github.com/users/yogadeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/yogadeveloper/received_events","type":"User","site_admin":false},"repo":{"id":57003872,"name":"railgun","full_name":"yogadeveloper/railgun","owner":{"login":"yogadeveloper","id":18226239,"avatar_url":"https://avatars.githubusercontent.com/u/18226239?v=3","gravatar_id":"","url":"https://api.github.com/users/yogadeveloper","html_url":"https://github.com/yogadeveloper","followers_url":"https://api.github.com/users/yogadeveloper/followers","following_url":"https://api.github.com/users/yogadeveloper/following{/other_user}","gists_url":"https://api.github.com/users/yogadeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/yogadeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogadeveloper/subscriptions","organizations_url":"https://api.github.com/users/yogadeveloper/orgs","repos_url":"https://api.github.com/users/yogadeveloper/repos","events_url":"https://api.github.com/users/yogadeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/yogadeveloper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yogadeveloper/railgun","description":"RailGun OverFlow app. This is my training project on Thinknetica","fork":false,"url":"https://api.github.com/repos/yogadeveloper/railgun","forks_url":"https://api.github.com/repos/yogadeveloper/railgun/forks","keys_url":"https://api.github.com/repos/yogadeveloper/railgun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yogadeveloper/railgun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yogadeveloper/railgun/teams","hooks_url":"https://api.github.com/repos/yogadeveloper/railgun/hooks","issue_events_url":"https://api.github.com/repos/yogadeveloper/railgun/issues/events{/number}","events_url":"https://api.github.com/repos/yogadeveloper/railgun/events","assignees_url":"https://api.github.com/repos/yogadeveloper/railgun/assignees{/user}","branches_url":"https://api.github.com/repos/yogadeveloper/railgun/branches{/branch}","tags_url":"https://api.github.com/repos/yogadeveloper/railgun/tags","blobs_url":"https://api.github.com/repos/yogadeveloper/railgun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yogadeveloper/railgun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yogadeveloper/railgun/git/refs{/sha}","trees_url":"https://api.github.com/repos/yogadeveloper/railgun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yogadeveloper/railgun/statuses/{sha}","languages_url":"https://api.github.com/repos/yogadeveloper/railgun/languages","stargazers_url":"https://api.github.com/repos/yogadeveloper/railgun/stargazers","contributors_url":"https://api.github.com/repos/yogadeveloper/railgun/contributors","subscribers_url":"https://api.github.com/repos/yogadeveloper/railgun/subscribers","subscription_url":"https://api.github.com/repos/yogadeveloper/railgun/subscription","commits_url":"https://api.github.com/repos/yogadeveloper/railgun/commits{/sha}","git_commits_url":"https://api.github.com/repos/yogadeveloper/railgun/git/commits{/sha}","comments_url":"https://api.github.com/repos/yogadeveloper/railgun/comments{/number}","issue_comment_url":"https://api.github.com/repos/yogadeveloper/railgun/issues/comments{/number}","contents_url":"https://api.github.com/repos/yogadeveloper/railgun/contents/{+path}","compare_url":"https://api.github.com/repos/yogadeveloper/railgun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yogadeveloper/railgun/merges","archive_url":"https://api.github.com/repos/yogadeveloper/railgun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yogadeveloper/railgun/downloads","issues_url":"https://api.github.com/repos/yogadeveloper/railgun/issues{/number}","pulls_url":"https://api.github.com/repos/yogadeveloper/railgun/pulls{/number}","milestones_url":"https://api.github.com/repos/yogadeveloper/railgun/milestones{/number}","notifications_url":"https://api.github.com/repos/yogadeveloper/railgun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yogadeveloper/railgun/labels{/name}","releases_url":"https://api.github.com/repos/yogadeveloper/railgun/releases{/id}","deployments_url":"https://api.github.com/repos/yogadeveloper/railgun/deployments","created_at":"2016-04-25T01:45:36Z","updated_at":"2016-04-25T06:27:22Z","pushed_at":"2016-06-27T05:18:04Z","git_url":"git://github.com/yogadeveloper/railgun.git","ssh_url":"git@github.com:yogadeveloper/railgun.git","clone_url":"https://github.com/yogadeveloper/railgun.git","svn_url":"https://github.com/yogadeveloper/railgun","homepage":"","size":186,"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/yogadeveloper/railgun/pulls/11"},"html":{"href":"https://github.com/yogadeveloper/railgun/pull/11"},"issue":{"href":"https://api.github.com/repos/yogadeveloper/railgun/issues/11"},"comments":{"href":"https://api.github.com/repos/yogadeveloper/railgun/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/yogadeveloper/railgun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yogadeveloper/railgun/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/yogadeveloper/railgun/statuses/e09252d58ae698c1a31db7d1c4c42e3c4c7d0331"}}}}
{"actor":{"display_login":"vkurennov"}}