Sha256: 8b4e09321a114a06a42b753ef7101bbf75495639eeaad807207504c91b09bba7

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module RailsWorkflow
  # Event operation - waiting/listening for some event.
  class EventOperation < Operation
    def can_start?
      false
    end

    # TODO: check if redundant
    def can_be_assigned?(_user)
      false # any user can complete operation
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 app/models/rails_workflow/event_operation.rb
rails_workflow-0.7.2 app/models/rails_workflow/event_operation.rb
rails_workflow-0.7.1 app/models/rails_workflow/event_operation.rb
rails_workflow-0.7.0 app/models/rails_workflow/event_operation.rb