Sha256: 16714166ebf752db242809833538147f835dbd033260a920b837a26c0fbc21b1

Contents?: true

Size: 303 Bytes

Versions: 7

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module RailsWorkflow
  class DefaultImporterPreprocessor
    def prepare(json)
      if json['operations']
        json['process_template']['operations'] = json['operations']
        json['process_template'].delete('operation_ids')
      end

      json
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_workflow-0.7.1 app/services/rails_workflow/default_importer_preprocessor.rb
rails_workflow-0.7.0 app/services/rails_workflow/default_importer_preprocessor.rb
rails_workflow-0.4.4 app/services/rails_workflow/default_importer_preprocessor.rb
rails_workflow-0.4.3 app/services/rails_workflow/default_importer_preprocessor.rb
rails_workflow-0.4.2 app/services/rails_workflow/default_importer_preprocessor.rb
rails_workflow-0.4.1 app/services/rails_workflow/default_importer_preprocessor.rb
rails_workflow-0.4.0 app/services/rails_workflow/default_importer_preprocessor.rb