Class: Labimotion::ElementKlassesRevision

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

Instance Method Summary collapse

Methods included from Workflow

#split_workflow

Instance Method Details

#migrate_workflowObject



13
14
15
16
17
# File 'lib/labimotion/models/element_klasses_revision.rb', line 13

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