Skip to content

Commit

Permalink
make sure rights_list is an array. #309
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 20, 2019
1 parent b2d3da5 commit 4cf9f56
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 @@ -53,6 +53,10 @@ class DoiSerializer
end.compact
end

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

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

0 comments on commit 4cf9f56

Please sign in to comment.