{"action":"created","issue":{"url":"https://api.github.com/repos/spree-contrib/spree_i18n/issues/532","labels_url":"https://api.github.com/repos/spree-contrib/spree_i18n/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/spree-contrib/spree_i18n/issues/532/comments","events_url":"https://api.github.com/repos/spree-contrib/spree_i18n/issues/532/events","html_url":"https://github.com/spree-contrib/spree_i18n/pull/532","id":63887734,"number":532,"title":"Let ransack know about translations","user":{"login":"huoxito","id":245662,"avatar_url":"https://avatars.githubusercontent.com/u/245662?v=3","gravatar_id":"","url":"https://api.github.com/users/huoxito","html_url":"https://github.com/huoxito","followers_url":"https://api.github.com/users/huoxito/followers","following_url":"https://api.github.com/users/huoxito/following{/other_user}","gists_url":"https://api.github.com/users/huoxito/gists{/gist_id}","starred_url":"https://api.github.com/users/huoxito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huoxito/subscriptions","organizations_url":"https://api.github.com/users/huoxito/orgs","repos_url":"https://api.github.com/users/huoxito/repos","events_url":"https://api.github.com/users/huoxito/events{/privacy}","received_events_url":"https://api.github.com/users/huoxito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"huoxito","id":245662,"avatar_url":"https://avatars.githubusercontent.com/u/245662?v=3","gravatar_id":"","url":"https://api.github.com/users/huoxito","html_url":"https://github.com/huoxito","followers_url":"https://api.github.com/users/huoxito/followers","following_url":"https://api.github.com/users/huoxito/following{/other_user}","gists_url":"https://api.github.com/users/huoxito/gists{/gist_id}","starred_url":"https://api.github.com/users/huoxito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huoxito/subscriptions","organizations_url":"https://api.github.com/users/huoxito/orgs","repos_url":"https://api.github.com/users/huoxito/repos","events_url":"https://api.github.com/users/huoxito/events{/privacy}","received_events_url":"https://api.github.com/users/huoxito/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2015-03-24T02:42:01Z","updated_at":"2015-05-13T16:06:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spree-contrib/spree_i18n/pulls/532","html_url":"https://github.com/spree-contrib/spree_i18n/pull/532","diff_url":"https://github.com/spree-contrib/spree_i18n/pull/532.diff","patch_url":"https://github.com/spree-contrib/spree_i18n/pull/532.patch"},"body":"Since globalize 5 won't store translated data on default tables we need\r\nto tweak the table / attribute name to let it fetch the data on the\r\nright place.\r\n\r\nThis is just a proof of concept on what we could do to\r\nimprove the spree / ransack / globalize love here. Not sure this will\r\nwork with associations yet or even if it will work at all in all\r\nscenarios\r\n\r\npossible fix for #530"},"comment":{"url":"https://api.github.com/repos/spree-contrib/spree_i18n/issues/comments/101726361","html_url":"https://github.com/spree-contrib/spree_i18n/pull/532#issuecomment-101726361","issue_url":"https://api.github.com/repos/spree-contrib/spree_i18n/issues/532","id":101726361,"user":{"login":"alepore","id":557414,"avatar_url":"https://avatars.githubusercontent.com/u/557414?v=3","gravatar_id":"","url":"https://api.github.com/users/alepore","html_url":"https://github.com/alepore","followers_url":"https://api.github.com/users/alepore/followers","following_url":"https://api.github.com/users/alepore/following{/other_user}","gists_url":"https://api.github.com/users/alepore/gists{/gist_id}","starred_url":"https://api.github.com/users/alepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepore/subscriptions","organizations_url":"https://api.github.com/users/alepore/orgs","repos_url":"https://api.github.com/users/alepore/repos","events_url":"https://api.github.com/users/alepore/events{/privacy}","received_events_url":"https://api.github.com/users/alepore/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T16:06:55Z","updated_at":"2015-05-13T16:06:55Z","body":"@huoxito have you looked if there's a way to compute/change the model table name in ransack?\r\nwould be killer to have a common solution for this and a `ransack-globalize` gem ;)"}}