From 5e5d98fb6fa8fbc6110de58c6d6c94b8fb935603 Mon Sep 17 00:00:00 2001 From: Mathieu Jobin Date: Mon, 30 Oct 2023 15:21:40 +0900 Subject: [PATCH] fix ambiguity --- .../collection_items_validator/inner_validator_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_model/validations/collection_items_validator/inner_validator_builder.rb b/lib/active_model/validations/collection_items_validator/inner_validator_builder.rb index 46559ee..f89016a 100644 --- a/lib/active_model/validations/collection_items_validator/inner_validator_builder.rb +++ b/lib/active_model/validations/collection_items_validator/inner_validator_builder.rb @@ -14,7 +14,7 @@ def initialize(validator_name, options) end def build - validator_class.new **inner_options.merge(attributes: [:base]) + validator_class.new **(inner_options.merge(attributes: [:base])) end private