trabajo-afectivo/config/initializers/logo.rb

13 lines
364 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
Rails.application.reloader.to_prepare do
next if !ActiveRecord::Base.connected?
# sync logo to fs / only if settings already exists
next if ActiveRecord::Base.connection.tables.exclude?('settings')
next if Setting.column_names.exclude?('state_current')
StaticAssets.sync
end