Fixed typo.

This commit is contained in:
Martin Edenhofer 2015-08-15 10:11:02 +02:00
parent 4e8ee5159e
commit e21966aede

View file

@ -17,7 +17,7 @@ load translations from online
def self.load def self.load
locales = Locale.where(active: true) locales = Locale.where(active: true)
if Rails.env.test? if Rails.env.test?
locales = Locale.where(active: true, name: ['en-us', 'de-de']) locales = Locale.where(active: true, locale: ['en-us', 'de-de'])
end end
locales.each {|locale| locales.each {|locale|
url = "https://i18n.zammad.com/api/v1/translations/#{locale.locale}" url = "https://i18n.zammad.com/api/v1/translations/#{locale.locale}"