Method: TranslationEngine::Downloader#update

Defined in:
app/models/translation_engine/downloader.rb

#updateObject



17
18
19
20
21
# File 'app/models/translation_engine/downloader.rb', line 17

def update
  return nil if self.class.cache_timeout && Time.now < self.class.cache_timeout
  return nil if self.class.etag?(connection.get_translations_head[:etag])
  I18n.backend.reload!
end