We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9d25f7 commit 8bb3503Copy full SHA for 8bb3503
1 file changed
lib/config/options.rb
@@ -37,9 +37,10 @@ def reload_env!
37
hash = Hash.new
38
39
ENV.each do |variable, value|
40
- keys = variable.to_s.split(Config.env_separator)
+ separator = Config.env_separator
41
+ prefix = (Config.env_prefix || Config.const_name).to_s.split(separator)
42
- prefix = (Config.env_prefix || Config.const_name).split(Config.env_separator)
43
+ keys = variable.to_s.split(separator)
44
45
next if keys.shift(prefix.size) != prefix
46
0 commit comments