Skip to content

Commit

Permalink
Revert "Add Config::Options#split"
Browse files Browse the repository at this point in the history
This reverts commit fc7f9b2.
  • Loading branch information
rdodson41 committed Aug 7, 2017
1 parent fc7f9b2 commit f0ad490
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/config/options.rb
Expand Up @@ -37,9 +37,9 @@ def reload_env!
hash = Hash.new

ENV.each do |variable, value|
keys = split(variable)
keys = variable.to_s.split(Config.env_separator)

prefix = split(Config.env_prefix || Config.const_name)
prefix = (Config.env_prefix || Config.const_name).split(Config.env_separator)

next if keys.shift(prefix.size) != prefix

Expand Down Expand Up @@ -154,10 +154,6 @@ def []=(param, value)

protected

def split(string)
string.to_s.split(Config.env_separator)
end

def descend_array(array)
array.map do |value|
if value.instance_of? Config::Options
Expand Down

0 comments on commit f0ad490

Please sign in to comment.