bulk_import_info.rb 294 B

123456789101112131415
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module BulkImportInfo
  3. def self.enabled?
  4. Thread.current[:bulk_import]
  5. end
  6. def self.enable
  7. Thread.current[:bulk_import] = true
  8. end
  9. def self.disable
  10. Thread.current[:bulk_import] = false
  11. end
  12. end