lib/dry/schema/messages/namespaced.rb in dry-schema-1.10.5 vs lib/dry/schema/messages/namespaced.rb in dry-schema-1.10.6

- old
+ new

@@ -61,10 +61,12 @@ end # @api private def rule_lookup_paths(tokens) base_paths = messages.rule_lookup_paths(tokens) - base_paths.map { |key| key.gsub("dry_schema", "dry_schema.#{namespace}") } + base_paths + base_paths.map { |key| + key.sub(config.top_namespace, "#{config.top_namespace}.#{namespace}") + } + base_paths end # @api private def cache_key(predicate, options) messages.cache_key(predicate, options)