lib/confuse/config_mixin.rb in confuse-0.0.1 vs lib/confuse/config_mixin.rb in confuse-0.1.0
- old
+ new
@@ -29,10 +29,10 @@
def [](key)
namespace = find_namespace(key) || :default
rest_of_key = rest_of_key(key, namespace)
ns = namespaces[namespace]
return ns unless rest_of_key
- ns[rest_of_key]
+ ns[rest_of_key, self]
end
# We allow the namespace and the key to be concatenated with an '_', so this
# method is to search the possible substrings that could make up the
# namespace for a key.