{"comment":{"url":"https://api.github.com/repos/dsaa151562000/sns_study/comments/12247902","html_url":"https://github.com/dsaa151562000/sns_study/commit/995a5ae059c451dff1ed853ad94747b280d97482#commitcomment-12247902","id":12247902,"user":{"login":"ms2sato","id":627817,"avatar_url":"https://avatars.githubusercontent.com/u/627817?v=3","gravatar_id":"","url":"https://api.github.com/users/ms2sato","html_url":"https://github.com/ms2sato","followers_url":"https://api.github.com/users/ms2sato/followers","following_url":"https://api.github.com/users/ms2sato/following{/other_user}","gists_url":"https://api.github.com/users/ms2sato/gists{/gist_id}","starred_url":"https://api.github.com/users/ms2sato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms2sato/subscriptions","organizations_url":"https://api.github.com/users/ms2sato/orgs","repos_url":"https://api.github.com/users/ms2sato/repos","events_url":"https://api.github.com/users/ms2sato/events{/privacy}","received_events_url":"https://api.github.com/users/ms2sato/received_events","type":"User","site_admin":false},"position":17,"line":17,"path":"app/models/snsstudy.rb","commit_id":"995a5ae059c451dff1ed853ad94747b280d97482","created_at":"2015-07-20T08:16:04Z","updated_at":"2015-07-20T08:16:04Z","body":"強いて言えば下記の方がいいですね。 `?` で終わるメソッドはbooleanが戻る方がより良いです。\r\n\r\n```rb\r\nrelationships.exists?(followed_id: other_user.id)\r\n```"}}