From 4daf6e0c5a136d7e8d96d25416ac692672ed0dba Mon Sep 17 00:00:00 2001 From: yrodnin Date: Fri, 4 Sep 2020 11:23:46 +0300 Subject: [PATCH] fix ruby 2.7 deprecation warning (Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call) --- lib/grape_entity/entity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grape_entity/entity.rb b/lib/grape_entity/entity.rb index 73f0ddcd..e2f0f700 100644 --- a/lib/grape_entity/entity.rb +++ b/lib/grape_entity/entity.rb @@ -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