From bdd03bef1dc36c8e1740aceb27d3cef75f27df96 Mon Sep 17 00:00:00 2001 From: Nikita Bulai Date: Tue, 31 Dec 2019 13:54:49 +0300 Subject: [PATCH] Small Ruby 2.7 + changelog fixes --- CHANGELOG.md | 2 +- lib/grape/exceptions/validation.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 792342ea77..95bbafc63b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ #### Features * Your contribution here. -* [#1948](https://github.com/ruby-grape/grape/pull/1949): Add support for Ruby 2.7 - [@nbulaj](https://github.com/nbulaj). +* [#1949](https://github.com/ruby-grape/grape/pull/1949): Add support for Ruby 2.7 - [@nbulaj](https://github.com/nbulaj). * [#1948](https://github.com/ruby-grape/grape/pull/1948): Relax `dry-types` dependency version - [@nbulaj](https://github.com/nbulaj). * [#1944](https://github.com/ruby-grape/grape/pull/1944): Reduces `attribute_translator` string allocations - [@ericproulx](https://github.com/ericproulx). * [#1943](https://github.com/ruby-grape/grape/pull/1943): Reduces number of regex string allocations - [@ericproulx](https://github.com/ericproulx). diff --git a/lib/grape/exceptions/validation.rb b/lib/grape/exceptions/validation.rb index 8b519d9c25..bfd1dee2d6 100644 --- a/lib/grape/exceptions/validation.rb +++ b/lib/grape/exceptions/validation.rb @@ -14,7 +14,7 @@ def initialize(params:, message: nil, **args) @message_key = message if message.is_a?(Symbol) args[:message] = translate_message(message) end - super(args) + super(**args) end # remove all the unnecessary stuff from Grape::Exceptions::Base like status