mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
allow nuking of vars via env
This commit is contained in:
parent
13e1016d73
commit
61a50f1cf6
@ -66,7 +66,8 @@ class GlobalSetting
|
||||
|
||||
class EnvProvider < BaseProvider
|
||||
def lookup(key, default)
|
||||
resolve(ENV["DISCOURSE_" << key.to_s.upcase], default)
|
||||
var = ENV["DISCOURSE_" << key.to_s.upcase]
|
||||
resolve(var , var.nil? ? default : nil)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user