{"action":"created","issue":{"url":"https://api.github.com/repos/globalize/globalize/issues/427","labels_url":"https://api.github.com/repos/globalize/globalize/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/globalize/globalize/issues/427/comments","events_url":"https://api.github.com/repos/globalize/globalize/issues/427/events","html_url":"https://github.com/globalize/globalize/issues/427","id":59769701,"number":427,"title":"Pluck?","user":{"login":"folivi","id":89837,"avatar_url":"https://avatars.githubusercontent.com/u/89837?v=3","gravatar_id":"","url":"https://api.github.com/users/folivi","html_url":"https://github.com/folivi","followers_url":"https://api.github.com/users/folivi/followers","following_url":"https://api.github.com/users/folivi/following{/other_user}","gists_url":"https://api.github.com/users/folivi/gists{/gist_id}","starred_url":"https://api.github.com/users/folivi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folivi/subscriptions","organizations_url":"https://api.github.com/users/folivi/orgs","repos_url":"https://api.github.com/users/folivi/repos","events_url":"https://api.github.com/users/folivi/events{/privacy}","received_events_url":"https://api.github.com/users/folivi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-04T09:12:26Z","updated_at":"2015-03-04T22:59:50Z","closed_at":"2015-03-04T09:15:40Z","body":"Hi,\r\nhow can I use pluck?\r\neg. Model.pluck(:name, :id) \r\nwith name  transalated\r\nFor now pluck only returns ids\r\nand Sport::Translation.group(:id).pluck(:name, :id) returns results for every locale\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/globalize/globalize/issues/comments/77269436","html_url":"https://github.com/globalize/globalize/issues/427#issuecomment-77269436","issue_url":"https://api.github.com/repos/globalize/globalize/issues/427","id":77269436,"user":{"login":"parndt","id":10128,"avatar_url":"https://avatars.githubusercontent.com/u/10128?v=3","gravatar_id":"","url":"https://api.github.com/users/parndt","html_url":"https://github.com/parndt","followers_url":"https://api.github.com/users/parndt/followers","following_url":"https://api.github.com/users/parndt/following{/other_user}","gists_url":"https://api.github.com/users/parndt/gists{/gist_id}","starred_url":"https://api.github.com/users/parndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parndt/subscriptions","organizations_url":"https://api.github.com/users/parndt/orgs","repos_url":"https://api.github.com/users/parndt/repos","events_url":"https://api.github.com/users/parndt/events{/privacy}","received_events_url":"https://api.github.com/users/parndt/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T22:59:50Z","updated_at":"2015-03-04T22:59:50Z","body":"Can you say what `Sport.joins(:translations).where('sport_translations.locale =?', Globalize.locale).to_sql` produces? \r\n\r\nAnd also what happens if you just do this: `Sport.joins(:translations).where('sport_translations.locale =?', Globalize.locale).map(&:name)`"}}