Class: Labimotion::ElementKlassesRevision

Inherits:
ApplicationRecord
  • Object
show all
Includes:
KlassRevision, MetadataValidation, Workflow
Defined in:
lib/labimotion/models/element_klasses_revision.rb

Instance Method Summary collapse

Methods included from KlassRevision

#increment_submitted!, #klass

Methods included from Workflow

#split_workflow

Instance Method Details

#migrate_workflowObject



16
17
18
19
20
# File 'lib/labimotion/models/element_klasses_revision.rb', line 16

def migrate_workflow
  return if properties_release.nil? || properties_release['flow'].nil?

  update_column(:properties_release, split_workflow(properties_release)) if properties_release['flow']
end