lib/dry/schema/messages/namespaced.rb in dry-schema-0.6.0 vs lib/dry/schema/messages/namespaced.rb in dry-schema-1.0.0
- old
+ new
@@ -57,9 +57,10 @@
# @api private
def lookup_paths(tokens)
super(tokens.merge(root: "#{tokens[:root]}.#{namespace}")) + super
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
end
end