Skip to content

Instantly share code, notes, and snippets.

@jakl
Created October 2, 2013 23:19
Show Gist options
  • Save jakl/6801996 to your computer and use it in GitHub Desktop.
Save jakl/6801996 to your computer and use it in GitHub Desktop.
Locales that havn't finished translating an import yet
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