Skip to content

Commit

Permalink
fix ruby 2.7 deprecation warning (Using the last argument as keyword …
Browse files Browse the repository at this point in the history
…parameters is deprecated; maybe ** should be added to the call)
  • Loading branch information
yrodnin committed Sep 4, 2020
1 parent 0a8cbb9 commit 4daf6e0
Showing 1 changed file with 1 addition and 1 deletion.
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 4daf6e0

Please sign in to comment.