Merge pull request #8084 from opf/fix/increase_attachment_tsv_extracted_resilience_check

increase tsv extracted check resilience
pull/8088/head
Markus Kahl 5 years ago committed by GitHub
commit 801d0bbad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/models/attachment.rb

@ -236,7 +236,11 @@ class Attachment < ActiveRecord::Base
.pluck(:container_type)
.compact
.select do |container_class|
container_class.constantize.attachment_tsv_extracted?
klass = container_class.constantize
klass.respond_to?(:attachment_tsv_extracted?) && klass.attachment_tsv_extracted?
rescue NameError
false
end
end

Loading…
Cancel
Save