From 9db4be468a3a293f0f478bd8355006c32bccb398 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 15 Jul 2019 00:08:27 +0200 Subject: [PATCH] fix syntax error --- app/serializers/doi_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/doi_serializer.rb b/app/serializers/doi_serializer.rb index 59a3c156a..15211020a 100644 --- a/app/serializers/doi_serializer.rb +++ b/app/serializers/doi_serializer.rb @@ -24,7 +24,7 @@ class DoiSerializer # for now override format for affiliations in production if Rails.env.production? Array.wrap(object.creators).map do |c| - c["affiliation"] = c.dig("affiliation", "name") if c.has_key("affiliation") + c["affiliation"] = c.dig("affiliation", "name") if c.has_key?("affiliation") c end else