Skip to content

Commit 13e80ba

Browse files
begotten63yrodnin
andauthored
Fix ruby 2.7 deprecation warning (#338)
* fix ruby 2.7 deprecation warning (Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call) * update changelog Co-authored-by: yrodnin <[email protected]>
1 parent 0a8cbb9 commit 13e80ba

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
@@ -6,7 +6,7 @@
66

77
#### Fixes
88

9-
* Your contribution here.
9+
* [#338](https://github.com/ruby-grape/grape-entity/pull/338): Fix ruby 2.7 deprecation warning - [@begotten63](https://github.com/begotten63).
1010

1111
### 0.8.1 (2020-07-15)
1212

lib/grape_entity/entity.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def delegate_attribute(attribute)
537537
if is_defined_in_entity?(attribute)
538538
send(attribute)
539539
elsif @delegator_accepts_opts
540-
delegator.delegate(attribute, self.class.delegation_opts)
540+
delegator.delegate(attribute, **self.class.delegation_opts)
541541
else
542542
delegator.delegate(attribute)
543543
end

0 commit comments

Comments
 (0)