trabajo-afectivo/lib/bulk_import_info.rb

14 lines
217 B
Ruby
Raw Normal View History

module BulkImportInfo
def self.enabled?
Thread.current[:bulk_import]
end
def self.enable
Thread.current[:bulk_import] = true
end
def self.disable
Thread.current[:bulk_import] = false
end
end