{"comment":{"url":"https://api.github.com/repos/hiphip90/watchit/comments/9382972","html_url":"https://github.com/hiphip90/watchit/commit/f0d02d52eaade36b74228f27128c511b0e266ea5#commitcomment-9382972","id":9382972,"user":{"login":"hiphip90","id":6410329,"avatar_url":"https://avatars.githubusercontent.com/u/6410329?v=3","gravatar_id":"","url":"https://api.github.com/users/hiphip90","html_url":"https://github.com/hiphip90","followers_url":"https://api.github.com/users/hiphip90/followers","following_url":"https://api.github.com/users/hiphip90/following{/other_user}","gists_url":"https://api.github.com/users/hiphip90/gists{/gist_id}","starred_url":"https://api.github.com/users/hiphip90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiphip90/subscriptions","organizations_url":"https://api.github.com/users/hiphip90/orgs","repos_url":"https://api.github.com/users/hiphip90/repos","events_url":"https://api.github.com/users/hiphip90/events{/privacy}","received_events_url":"https://api.github.com/users/hiphip90/received_events","type":"User","site_admin":false},"position":7,"line":19,"path":"app/controllers/users_controller.rb","commit_id":"f0d02d52eaade36b74228f27128c511b0e266ea5","created_at":"2015-01-21T19:47:40Z","updated_at":"2015-01-21T19:47:40Z","body":"@Freika да, ты прав в контексте этого коммита, но я уже добавил before_action на edit и update, которые проверяют кто ты таков. Если ты не залогинен под юзера, которого хочешь редактировать, тебя просто выкинет на рут."}}