From 323141656402835787673ded78df6dcb924e7927 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 10 Apr 2019 07:31:36 +0200 Subject: [PATCH] fix published date. #122 --- 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 26b458056..58369cbc5 100644 --- a/app/serializers/doi_serializer.rb +++ b/app/serializers/doi_serializer.rb @@ -28,7 +28,7 @@ class DoiSerializer end attribute :published do |object| - object.respond_to?(:published) ? :published : nil + object.respond_to?(:published) ? object.published : nil end attribute :is_active do |object|