{"comment":{"url":"https://api.github.com/repos/netguru/people/comments/12946391","html_url":"https://github.com/netguru/people/commit/f591bd2f6d1d3de921458352f62ed706b3dbf550#commitcomment-12946391","id":12946391,"user":{"login":"zatapathique","id":3431467,"avatar_url":"https://avatars.githubusercontent.com/u/3431467?v=3","gravatar_id":"","url":"https://api.github.com/users/zatapathique","html_url":"https://github.com/zatapathique","followers_url":"https://api.github.com/users/zatapathique/followers","following_url":"https://api.github.com/users/zatapathique/following{/other_user}","gists_url":"https://api.github.com/users/zatapathique/gists{/gist_id}","starred_url":"https://api.github.com/users/zatapathique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zatapathique/subscriptions","organizations_url":"https://api.github.com/users/zatapathique/orgs","repos_url":"https://api.github.com/users/zatapathique/repos","events_url":"https://api.github.com/users/zatapathique/events{/privacy}","received_events_url":"https://api.github.com/users/zatapathique/received_events","type":"User","site_admin":false},"position":29,"line":29,"path":"app/services/user_abilities_updater.rb","commit_id":"f591bd2f6d1d3de921458352f62ed706b3dbf550","created_at":"2015-08-28T12:04:58Z","updated_at":"2015-08-28T12:04:58Z","body":"Another note would be to use map instead of each and then update all user abilities at once - this way you do it with 1 query instead of multiple for each ability : \r\n```\r\nabilities = abilities_to_add .map { bla bla bla }\r\nuser.abilites += abilities\r\n```"}}