Skip to content

Commit

Permalink
Convert id to string in case it's a valk id
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Oct 6, 2023
1 parent 7ff255d commit df23012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/hyrax/base/show.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
@curation_concern = ::Wings::ActiveFedoraConverter.convert(resource: @curation_concern) if
@curation_concern.is_a?(Hyrax::Resource) && Object.const_defined?("Wings")

json.extract! @curation_concern, *[:id] + @curation_concern.class.fields.reject { |f| [:has_model].include? f }
json.extract! @curation_concern, *@curation_concern.class.fields.reject { |f| [:has_model].include? f }
json.id @curation_concern.id.to_s
json.version @curation_concern.try(:etag)

0 comments on commit df23012

Please sign in to comment.