{"action":"created","comment":{"url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/comments/171571468","pull_request_review_id":100445863,"id":171571468,"diff_hunk":"@@ -1,8 +1,17 @@\n class ApplicationController < ActionController::Base\n   protect_from_forgery with: :exception\n   rescue_from ActiveRecord::RecordNotFound, with: :not_found\n+  helper_method :current_user\n \n   def not_found\n     render 'error/error', status: 404\n   end\n+  def current_user\n+    if @user","path":"app/controllers/application_controller.rb","position":10,"original_position":10,"commit_id":"437b05c26a5e4efab0645fb2702abbd973afa0da","original_commit_id":"437b05c26a5e4efab0645fb2702abbd973afa0da","user":{"login":"lcarozzi","id":13685628,"avatar_url":"https://avatars1.githubusercontent.com/u/13685628?v=4","gravatar_id":"","url":"https://api.github.com/users/lcarozzi","html_url":"https://github.com/lcarozzi","followers_url":"https://api.github.com/users/lcarozzi/followers","following_url":"https://api.github.com/users/lcarozzi/following{/other_user}","gists_url":"https://api.github.com/users/lcarozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/lcarozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcarozzi/subscriptions","organizations_url":"https://api.github.com/users/lcarozzi/orgs","repos_url":"https://api.github.com/users/lcarozzi/repos","events_url":"https://api.github.com/users/lcarozzi/events{/privacy}","received_events_url":"https://api.github.com/users/lcarozzi/received_events","type":"User","site_admin":false},"body":"porque asignamos la variable de clase `@current_user`, se usa en algun lado?","created_at":"2018-03-01T14:21:43Z","updated_at":"2018-03-01T14:22:06Z","html_url":"https://github.com/MatiasCarrara/Devices_rails/pull/4#discussion_r171571468","pull_request_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/comments/171571468"},"html":{"href":"https://github.com/MatiasCarrara/Devices_rails/pull/4#discussion_r171571468"},"pull_request":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4"}},"in_reply_to_id":171571192},"pull_request":{"url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4","id":171711606,"html_url":"https://github.com/MatiasCarrara/Devices_rails/pull/4","diff_url":"https://github.com/MatiasCarrara/Devices_rails/pull/4.diff","patch_url":"https://github.com/MatiasCarrara/Devices_rails/pull/4.patch","issue_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/4","number":4,"state":"open","locked":false,"title":"Users","user":{"login":"MatiasCarrara","id":20969715,"avatar_url":"https://avatars3.githubusercontent.com/u/20969715?v=4","gravatar_id":"","url":"https://api.github.com/users/MatiasCarrara","html_url":"https://github.com/MatiasCarrara","followers_url":"https://api.github.com/users/MatiasCarrara/followers","following_url":"https://api.github.com/users/MatiasCarrara/following{/other_user}","gists_url":"https://api.github.com/users/MatiasCarrara/gists{/gist_id}","starred_url":"https://api.github.com/users/MatiasCarrara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatiasCarrara/subscriptions","organizations_url":"https://api.github.com/users/MatiasCarrara/orgs","repos_url":"https://api.github.com/users/MatiasCarrara/repos","events_url":"https://api.github.com/users/MatiasCarrara/events{/privacy}","received_events_url":"https://api.github.com/users/MatiasCarrara/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-27T16:18:02Z","updated_at":"2018-03-01T14:22:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d02fc112250ba6b83e933badc2f65a45daf265bd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4/commits","review_comments_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4/comments","review_comment_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/4/comments","statuses_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/statuses/437b05c26a5e4efab0645fb2702abbd973afa0da","head":{"label":"MatiasCarrara:users","ref":"users","sha":"437b05c26a5e4efab0645fb2702abbd973afa0da","user":{"login":"MatiasCarrara","id":20969715,"avatar_url":"https://avatars3.githubusercontent.com/u/20969715?v=4","gravatar_id":"","url":"https://api.github.com/users/MatiasCarrara","html_url":"https://github.com/MatiasCarrara","followers_url":"https://api.github.com/users/MatiasCarrara/followers","following_url":"https://api.github.com/users/MatiasCarrara/following{/other_user}","gists_url":"https://api.github.com/users/MatiasCarrara/gists{/gist_id}","starred_url":"https://api.github.com/users/MatiasCarrara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatiasCarrara/subscriptions","organizations_url":"https://api.github.com/users/MatiasCarrara/orgs","repos_url":"https://api.github.com/users/MatiasCarrara/repos","events_url":"https://api.github.com/users/MatiasCarrara/events{/privacy}","received_events_url":"https://api.github.com/users/MatiasCarrara/received_events","type":"User","site_admin":false},"repo":{"id":120457026,"name":"Devices_rails","full_name":"MatiasCarrara/Devices_rails","owner":{"login":"MatiasCarrara","id":20969715,"avatar_url":"https://avatars3.githubusercontent.com/u/20969715?v=4","gravatar_id":"","url":"https://api.github.com/users/MatiasCarrara","html_url":"https://github.com/MatiasCarrara","followers_url":"https://api.github.com/users/MatiasCarrara/followers","following_url":"https://api.github.com/users/MatiasCarrara/following{/other_user}","gists_url":"https://api.github.com/users/MatiasCarrara/gists{/gist_id}","starred_url":"https://api.github.com/users/MatiasCarrara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatiasCarrara/subscriptions","organizations_url":"https://api.github.com/users/MatiasCarrara/orgs","repos_url":"https://api.github.com/users/MatiasCarrara/repos","events_url":"https://api.github.com/users/MatiasCarrara/events{/privacy}","received_events_url":"https://api.github.com/users/MatiasCarrara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MatiasCarrara/Devices_rails","description":null,"fork":false,"url":"https://api.github.com/repos/MatiasCarrara/Devices_rails","forks_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/forks","keys_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/teams","hooks_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/hooks","issue_events_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/events{/number}","events_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/events","assignees_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/assignees{/user}","branches_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/branches{/branch}","tags_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/tags","blobs_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/languages","stargazers_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/stargazers","contributors_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/contributors","subscribers_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/subscribers","subscription_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/subscription","commits_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/contents/{+path}","compare_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/merges","archive_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/downloads","issues_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues{/number}","pulls_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/labels{/name}","releases_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/releases{/id}","deployments_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/deployments","created_at":"2018-02-06T13:00:22Z","updated_at":"2018-02-06T13:06:26Z","pushed_at":"2018-03-01T12:07:14Z","git_url":"git://github.com/MatiasCarrara/Devices_rails.git","ssh_url":"git@github.com:MatiasCarrara/Devices_rails.git","clone_url":"https://github.com/MatiasCarrara/Devices_rails.git","svn_url":"https://github.com/MatiasCarrara/Devices_rails","homepage":null,"size":54,"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":"MatiasCarrara:master","ref":"master","sha":"aa954b88e5125bdd3270445f2a604585974b75e9","user":{"login":"MatiasCarrara","id":20969715,"avatar_url":"https://avatars3.githubusercontent.com/u/20969715?v=4","gravatar_id":"","url":"https://api.github.com/users/MatiasCarrara","html_url":"https://github.com/MatiasCarrara","followers_url":"https://api.github.com/users/MatiasCarrara/followers","following_url":"https://api.github.com/users/MatiasCarrara/following{/other_user}","gists_url":"https://api.github.com/users/MatiasCarrara/gists{/gist_id}","starred_url":"https://api.github.com/users/MatiasCarrara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatiasCarrara/subscriptions","organizations_url":"https://api.github.com/users/MatiasCarrara/orgs","repos_url":"https://api.github.com/users/MatiasCarrara/repos","events_url":"https://api.github.com/users/MatiasCarrara/events{/privacy}","received_events_url":"https://api.github.com/users/MatiasCarrara/received_events","type":"User","site_admin":false},"repo":{"id":120457026,"name":"Devices_rails","full_name":"MatiasCarrara/Devices_rails","owner":{"login":"MatiasCarrara","id":20969715,"avatar_url":"https://avatars3.githubusercontent.com/u/20969715?v=4","gravatar_id":"","url":"https://api.github.com/users/MatiasCarrara","html_url":"https://github.com/MatiasCarrara","followers_url":"https://api.github.com/users/MatiasCarrara/followers","following_url":"https://api.github.com/users/MatiasCarrara/following{/other_user}","gists_url":"https://api.github.com/users/MatiasCarrara/gists{/gist_id}","starred_url":"https://api.github.com/users/MatiasCarrara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatiasCarrara/subscriptions","organizations_url":"https://api.github.com/users/MatiasCarrara/orgs","repos_url":"https://api.github.com/users/MatiasCarrara/repos","events_url":"https://api.github.com/users/MatiasCarrara/events{/privacy}","received_events_url":"https://api.github.com/users/MatiasCarrara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MatiasCarrara/Devices_rails","description":null,"fork":false,"url":"https://api.github.com/repos/MatiasCarrara/Devices_rails","forks_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/forks","keys_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/teams","hooks_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/hooks","issue_events_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/events{/number}","events_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/events","assignees_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/assignees{/user}","branches_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/branches{/branch}","tags_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/tags","blobs_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/languages","stargazers_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/stargazers","contributors_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/contributors","subscribers_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/subscribers","subscription_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/subscription","commits_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/contents/{+path}","compare_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/merges","archive_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/downloads","issues_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues{/number}","pulls_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/labels{/name}","releases_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/releases{/id}","deployments_url":"https://api.github.com/repos/MatiasCarrara/Devices_rails/deployments","created_at":"2018-02-06T13:00:22Z","updated_at":"2018-02-06T13:06:26Z","pushed_at":"2018-03-01T12:07:14Z","git_url":"git://github.com/MatiasCarrara/Devices_rails.git","ssh_url":"git@github.com:MatiasCarrara/Devices_rails.git","clone_url":"https://github.com/MatiasCarrara/Devices_rails.git","svn_url":"https://github.com/MatiasCarrara/Devices_rails","homepage":null,"size":54,"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/MatiasCarrara/Devices_rails/pulls/4"},"html":{"href":"https://github.com/MatiasCarrara/Devices_rails/pull/4"},"issue":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/4"},"comments":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/MatiasCarrara/Devices_rails/statuses/437b05c26a5e4efab0645fb2702abbd973afa0da"}},"author_association":"OWNER"}}
{"actor":{"display_login":"lcarozzi"}}