12345678910111213141516171819202122 |
- module Import
- module OTRS
- module StateFactory
- extend Import::TransactionFactory
- # rubocop:disable Style/ModuleFunction
- extend self
- def pre_import_hook(_records, *_args)
- backup
- end
- def backup
- # rename states to handle not uniq issues
- ::Ticket::State.all.each { |state|
- state.name = state.name + '_tmp'
- state.save
- }
- end
- end
- end
- end
|