Sha256: 6a095b04872753a376ae3172a4c108928d818f8583c331f5bbb0b114aca1d1c2

Contents?: true

Size: 501 Bytes

Versions: 13

Compression:

Stored size: 501 Bytes

Contents

module CurationConcerns
  module Actors
    class InitializeWorkflowActor < AbstractActor
      class_attribute :workflow_factory
      self.workflow_factory = ::CurationConcerns::Workflow::WorkflowFactory

      def create(attributes)
        next_actor.create(attributes) && create_workflow(attributes)
      end

      private

        # @return [TrueClass]
        def create_workflow(attributes)
          workflow_factory.create(curation_concern, attributes, user)
        end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.7 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-2.0.0 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-2.0.0.rc2 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.6 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.5 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.4 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.3 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.2 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-2.0.0.rc1 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.1 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.0 app/actors/curation_concerns/actors/initialize_workflow_actor.rb
curation_concerns-1.7.0.beta1 app/actors/curation_concerns/actors/initialize_workflow_actor.rb