lib/unified_settings/handlers/base.rb in unified_settings-0.1.1 vs lib/unified_settings/handlers/base.rb in unified_settings-0.1.2

- old
+ new

@@ -41,16 +41,19 @@ def to_symbol_array(val, separator: KEY_NESTING_SEPARATOR) split(val, separator).map(&:to_sym) end def nested_key_exists?(hash, keys) + return false if hash.nil? + current_level = hash keys.each do |key| return false if current_level.nil? return true if current_level.key?(key) current_level = current_level[key] end + false end end end end