X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/675794872a5d064cf0a8177d662555c04b0dae51..94afae23dd927b2d9d6c3472f90bc00f0310bbf5:/apps/workbench/config/load_config.rb?ds=sidebyside diff --git a/apps/workbench/config/load_config.rb b/apps/workbench/config/load_config.rb index 51fc81ab75..f14c3ca845 100644 --- a/apps/workbench/config/load_config.rb +++ b/apps/workbench/config/load_config.rb @@ -23,11 +23,17 @@ ArvadosWorkbench::Application.configure do ks.each do |kk| cfg = cfg.send(kk) end - if cfg.respond_to?(k.to_sym) and !cfg.send(k).nil? - # Config must have been set already in environments/*.rb. + if v.nil? and cfg.respond_to?(k) and !cfg.send(k).nil? + # Config is nil in *.yml, but has been set already in + # environments/*.rb (or has a Rails default). Don't overwrite + # the default/upstream config with nil. # # After config files have been migrated, this mechanism should - # be deprecated, then removed. + # be removed. + Rails.logger.warn <