Skip to content

Commit d9cf755

Browse files
authored
Merge pull request #1951 from nbulaj/small-ruby-2.7-fixes
Small Ruby 2.7 + changelog fixes
2 parents c552813 + bdd03be commit d9cf755

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#### Features
44

55
* Your contribution here.
6-
* [#1948](https://github.com/ruby-grape/grape/pull/1949): Add support for Ruby 2.7 - [@nbulaj](https://github.com/nbulaj).
6+
* [#1949](https://github.com/ruby-grape/grape/pull/1949): Add support for Ruby 2.7 - [@nbulaj](https://github.com/nbulaj).
77
* [#1948](https://github.com/ruby-grape/grape/pull/1948): Relax `dry-types` dependency version - [@nbulaj](https://github.com/nbulaj).
88
* [#1944](https://github.com/ruby-grape/grape/pull/1944): Reduces `attribute_translator` string allocations - [@ericproulx](https://github.com/ericproulx).
99
* [#1943](https://github.com/ruby-grape/grape/pull/1943): Reduces number of regex string allocations - [@ericproulx](https://github.com/ericproulx).

lib/grape/exceptions/validation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(params:, message: nil, **args)
1414
@message_key = message if message.is_a?(Symbol)
1515
args[:message] = translate_message(message)
1616
end
17-
super(args)
17+
super(**args)
1818
end
1919

2020
# remove all the unnecessary stuff from Grape::Exceptions::Base like status

0 commit comments

Comments
 (0)