Skip to content

Commit

Permalink
Fix 2.7 deprecation warning in validator_factory (#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Legogris committed Oct 17, 2020
1 parent 552e01c commit 4753cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion lib/grape/validations/validator_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.create_validator(**options)
options[:options],
options[:required],
options[:params_scope],
options[:opts])
**options[:opts])
end
end
end
Expand Down

0 comments on commit 4753cb3

Please sign in to comment.