diff --git a/CHANGELOG.md b/CHANGELOG.md index 76c167eef..3d43e98f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ #### Fixes * Your contribution here. +* [#2121](https://github.com/ruby-grape/grape/pull/2121): Fix 2.7 deprecation warning in validator_factory - [@Legogris](https://github.com/Legogris). * [#2115](https://github.com/ruby-grape/grape/pull/2115): Fix declared_params regression with multiple allowed types - [@stanhu](https://github.com/stanhu). * [#2123](https://github.com/ruby-grape/grape/pull/2123): Fix 2.7 deprecation warning in middleware/stack - [@Legogris](https://github.com/Legogris). diff --git a/lib/grape/validations/validator_factory.rb b/lib/grape/validations/validator_factory.rb index f23655f10..444fa0421 100644 --- a/lib/grape/validations/validator_factory.rb +++ b/lib/grape/validations/validator_factory.rb @@ -8,7 +8,7 @@ def self.create_validator(**options) options[:options], options[:required], options[:params_scope], - options[:opts]) + **options[:opts]) end end end