Sha256: cb5d4dc74e28f27b0ef6448a2c2a58900380b00c90ac8c554a820e4c77c62932
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_workflow-0.3.7 | app/serializers/rails_workflow/operation_template_serializer.rb |
rails_workflow-0.3.6 | app/serializers/rails_workflow/operation_template_serializer.rb |