From cc94a8972862190456b7bbe463f628568a6ac1ba Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 23 Jun 2019 17:22:09 +0200 Subject: [PATCH] show dois in lowercase --- app/serializers/event_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/event_serializer.rb b/app/serializers/event_serializer.rb index b1e89e6f7..ccfc21456 100644 --- a/app/serializers/event_serializer.rb +++ b/app/serializers/event_serializer.rb @@ -6,7 +6,7 @@ class EventSerializer attributes :subj_id, :obj_id, :source_id, :relation_type_id, :total, :message_action, :source_token, :license, :occurred_at, :timestamp - has_many :dois, record_type: :dois, serializer: DoiSerializer, id_method_name: :doi do |object| + has_many :dois, record_type: :dois, serializer: DoiSerializer, id_method_name: :uid do |object| Doi.find_by_id(object.doi).results end