mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
allow nuking of vars via env
This commit is contained in:
parent
13e1016d73
commit
61a50f1cf6
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue