diff --git a/app/serializers/doi_serializer.rb b/app/serializers/doi_serializer.rb index 7abbf609a..bd8771164 100644 --- a/app/serializers/doi_serializer.rb +++ b/app/serializers/doi_serializer.rb @@ -20,12 +20,8 @@ class DoiSerializer end attribute :creators do |object| - # If we're just a hash then force this over to a list. - if object.creators.class == Hash - object.creators = [object.creators] - end - - object.creators + # Always return an array of creators + Array.wrap(object.creators) end attribute :state do |object|