From 1890360d3f8e60c77bd820c6fd0d313d059c921a Mon Sep 17 00:00:00 2001 From: Mathieu Jobin Date: Mon, 30 Oct 2023 15:23:09 +0900 Subject: [PATCH] fix --- .../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 f89016a..b031d7b 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