Skip to content

Commit 545963c

Browse files
authored
Merge pull request #2104 from stanhu/sh-fix-ruby-2.7-kwargs
Fix Ruby 2.7 deprecation warning
2 parents 7d73ca6 + 9b678f4 commit 545963c

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+
* [#2104](https://github.com/ruby-grape/grape/pull/2104): Fix Ruby 2.7 keyword deprecation warning - [@stanhu](https://github.com/stanhu).
1011
* [#2103](https://github.com/ruby-grape/grape/pull/2103): Ensure complete declared params structure is present - [@tlconnor](https://github.com/tlconnor).
1112
* [#2099](https://github.com/ruby-grape/grape/pull/2099): Added truffleruby to Travis-CI - [@gogainda](https://github.com/gogainda).
1213
* [#2089](https://github.com/ruby-grape/grape/pull/2089): Specify order of mounting Grape with Rack::Cascade in README - [@jonmchan](https://github.com/jonmchan).

lib/grape/dsl/inside_route.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def entity_class_for_obj(object, options)
421421
def entity_representation_for(entity_class, object, options)
422422
embeds = { env: env }
423423
embeds[:version] = env[Grape::Env::API_VERSION] if env[Grape::Env::API_VERSION]
424-
entity_class.represent(object, embeds.merge(options))
424+
entity_class.represent(object, **embeds.merge(options))
425425
end
426426
end
427427
end

0 commit comments

Comments
 (0)