Skip to content

Commit 4753cb3

Browse files
authored
Fix 2.7 deprecation warning in validator_factory (#2121)
1 parent 552e01c commit 4753cb3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#### Fixes
88

99
* Your contribution here.
10+
* [#2121](https://github.com/ruby-grape/grape/pull/2121): Fix 2.7 deprecation warning in validator_factory - [@Legogris](https://github.com/Legogris).
1011
* [#2115](https://github.com/ruby-grape/grape/pull/2115): Fix declared_params regression with multiple allowed types - [@stanhu](https://github.com/stanhu).
1112
* [#2123](https://github.com/ruby-grape/grape/pull/2123): Fix 2.7 deprecation warning in middleware/stack - [@Legogris](https://github.com/Legogris).
1213

lib/grape/validations/validator_factory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def self.create_validator(**options)
88
options[:options],
99
options[:required],
1010
options[:params_scope],
11-
options[:opts])
11+
**options[:opts])
1212
end
1313
end
1414
end

0 commit comments

Comments
 (0)