Skip to content

Commit

Permalink
check if table exists before initializing lit - should solve deploy p…
Browse files Browse the repository at this point in the history
…roblems
  • Loading branch information
mlitwiniuk committed May 24, 2013
1 parent 281a705 commit e6dd0c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/lit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6dd0c6

Please sign in to comment.