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