Skip to content

Commit 23bbc3c

Browse files
committed
fix ruby 2.7 deprecation warning (Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call)
1 parent 0a8cbb9 commit 23bbc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)