Sha256: 1844c43647d62362c15716eb5428fc5d8a9f06a316888fdd2bfbac41af98e41a
Contents?: true
Size: 693 Bytes
Versions: 9
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true module RailsWorkflow class OperationTemplateSerializer < ActiveModel::Serializer attributes :uuid, :title, :source, :dependencies, :operation_class, :async, :assignment_id, :assignment_type, :kind, :role, :group, :instruction, :is_background, :type, :partial_name, :version, :tag, :child_process def child_process object.child_process.try(:uuid) end def dependencies object.dependencies.each do |d| d['uuid'] = OperationTemplate.find(d['id']).uuid d.delete('id') end end def operation_class object.read_attribute :operation_class end end end
Version data entries
9 entries across 9 versions & 1 rubygems