From 4753cb3f0015823a9a4ccacb1abdbb29bbd0b256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Edstr=C3=B6m?= <108799+Legogris@users.noreply.github.com> Date: Sat, 17 Oct 2020 23:39:43 +0900 Subject: [PATCH] Fix 2.7 deprecation warning in validator_factory (#2121) --- CHANGELOG.md | 1 + lib/grape/validations/validator_factory.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76c167eef4..3d43e98f4d 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 f23655f105..444fa0421e 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