Skip to content

Commit

Permalink
show dois in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 23, 2019
1 parent 7ed4730 commit cc94a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/event_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cc94a89

Please sign in to comment.