Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/datacite/lupo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 27, 2019
2 parents 7cbb276 + b7edffa commit 1515357
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 107 deletions.
5 changes: 5 additions & 0 deletions app/serializers/doi_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ class DoiSerializer
object.doi.downcase
end

attribute :creators do |object|
# Always return an array of creators
Array.wrap(object.creators)
end

attribute :state do |object|
object.aasm_state
end
Expand Down
Loading

0 comments on commit 1515357

Please sign in to comment.