diff --git a/lib/lit.rb b/lib/lit.rb index ba893cfc..9722f5a7 100644 --- a/lib/lit.rb +++ b/lib/lit.rb @@ -10,7 +10,8 @@ class << self attr_accessor :loader end def self.init - if self.loader.nil? + @@table_exists ||= Lit::Locale.table_exists? + if self.loader.nil? && @@table_exists self.loader ||= Loader.new #if loading all translations on start, migrations have to be performed #already, fails on first deploy