From 4daf6e0c5a136d7e8d96d25416ac692672ed0dba Mon Sep 17 00:00:00 2001 From: yrodnin Date: Fri, 4 Sep 2020 11:23:46 +0300 Subject: [PATCH 1/2] 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 From 233e0f417bbafc6db343cc027defd7edd2bf7a40 Mon Sep 17 00:00:00 2001 From: yrodnin Date: Fri, 4 Sep 2020 11:37:56 +0300 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a06a310..e1e929fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)