Sha256: 618aec80cb2b1fcb1561d47f5959086e37ae9e190c580590a27835d70d78208d
Contents?: true
Size: 455 Bytes
Versions: 3
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module GeoblacklightAdmin class RemoveParentDctReferencesUriJob < ApplicationJob queue_as :priority def perform(asset) if asset.dct_references_uri_key.present? asset.parent.dct_references_s.delete_if { |i| i.value == asset.full_file_url } asset.parent.save! end rescue => e Rails.logger.error "\nError - Removing parent dct_references URI: #{e.message} \n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems