Created
October 2, 2013 23:19
-
-
Save jakl/6801996 to your computer and use it in GitHub Desktop.
Locales that havn't finished translating an import yet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Import | |
def self.incomplete_locales | |
Locale.where(id: | |
self.phrases.all_globally_pending.joins( | |
'JOIN projects_locales'\ | |
' on phrases_projects.project_id = projects_locales.project_id'\ | |
' and projects_locales.status_id != 0' | |
).pluck('projects_locales.locale_id') | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment