Skip to content

Commit

Permalink
make sure doi descriptions are always an array #581
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 17, 2020
1 parent e0f19f2 commit be84ca0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/serializers/doi_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ class DoiSerializer
Array.wrap(object.sizes)
end

attribute :descriptions do |object|
Array.wrap(object.descriptions)
end

attribute :formats do |object|
Array.wrap(object.formats)
end
Expand Down

0 comments on commit be84ca0

Please sign in to comment.