Skip to content

Commit

Permalink
Merge pull request #1951 from nbulaj/small-ruby-2.7-fixes
Browse files Browse the repository at this point in the history
Small Ruby 2.7 + changelog fixes
  • Loading branch information
dblock committed Jan 2, 2020
2 parents c552813 + bdd03be commit d9cf755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion lib/grape/exceptions/validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9cf755

Please sign in to comment.