Skip to content

Commit 94c9d6f

Browse files
authored
Fix Ruby 2.7 keyword deprecation warning in validators/coerce (#2131)
1 parent 42489c2 commit 94c9d6f

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+
* [#2131](https://github.com/ruby-grape/grape/pull/2131): Fix Ruby 2.7 keyword deprecation warning in validators/coerce - [@K0H205](https://github.com/K0H205).
1011

1112
### 1.5.1 (2020/11/15)
1213

lib/grape/validations/validators/coerce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Instance
1717

1818
module Validations
1919
class CoerceValidator < Base
20-
def initialize(*_args)
20+
def initialize(attrs, options, required, scope, **opts)
2121
super
2222

2323
@converter = if type.is_a?(Grape::Validations::Types::VariantCollectionCoercer)

0 commit comments

Comments
 (0)