bulk_import_info.rb 217 B

12345678910111213
  1. module BulkImportInfo
  2. def self.enabled?
  3. Thread.current[:bulk_import]
  4. end
  5. def self.enable
  6. Thread.current[:bulk_import] = true
  7. end
  8. def self.disable
  9. Thread.current[:bulk_import] = false
  10. end
  11. end