app/services/hyrax/listeners/active_fedora_acl_index_listener.rb
def on_object_acl_updated(event)
        return if Hyrax.config.disable_wings
        return unless event[:result] == :success # do nothing on failure

        if Hyrax.metadata_adapter.is_a?(Wings::Valkyrie::MetadataAdapter)
          Wings::ActiveFedoraConverter.convert(resource: event[:acl].resource).update_index
        else
          Hyrax.logger.info('Skipping ActiveFedora object reindex because the Wings adapter is not in use.')
        end
      end
##
# Re-index the resource for the updated ACL.
#
# @param event [Dry::Event]
Re-index the resource for the updated ACL.
Re - index the resource for the updated ACL .
def on_object_acl_updated(event)
        return if Hyrax.config.disable_wings
        return unless event[:result] == :success 
        if Hyrax.metadata_adapter.is_a?(Wings::Valkyrie::MetadataAdapter)
          Wings::ActiveFedoraConverter.convert(resource: event[:acl].resource).update_index
        else
          Hyrax.logger.info('Skipping ActiveFedora object reindex because the Wings adapter is not in use.')
        end
      end
def on_object_acl_updated ( event ) return if Hyrax . config . disable_wings return unless event [ :result ] == :success if Hyrax . metadata_adapter . is_a? ( Wings :: Valkyrie :: MetadataAdapter ) Wings :: ActiveFedoraConverter . convert ( resource : event [ :acl ] . resource ) . update_index else Hyrax . logger . info ( 'Skipping ActiveFedora object reindex because the Wings adapter is not in use.' ) end end
Re-index the resource for the updated ACL.
Re - index the resource for the updated ACL .
# do nothing on failure
event
None