Skip to content

Commit

Permalink
Fix ruby 2.7 deprecation warning (#338)
Browse files Browse the repository at this point in the history
* 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 <y.rodnin@balance-pl.ru>
  • Loading branch information
begotten63 and yrodnin authored Sep 5, 2020
1 parent 0a8cbb9 commit 13e80ba
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 @@ -6,7 +6,7 @@

#### Fixes

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

### 0.8.1 (2020-07-15)

Expand Down
2 changes: 1 addition & 1 deletion lib/grape_entity/entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def delegate_attribute(attribute)
if is_defined_in_entity?(attribute)
send(attribute)
elsif @delegator_accepts_opts
delegator.delegate(attribute, self.class.delegation_opts)
delegator.delegate(attribute, **self.class.delegation_opts)
else
delegator.delegate(attribute)
end
Expand Down

0 comments on commit 13e80ba

Please sign in to comment.