Module: Spree::Workflow::ControlFlow

Included in:
Spree::Workflow
Defined in:
lib/spree/workflow.rb

Overview

failure(...) must abort the flow, but the prepended ServiceModule helper sits ahead of this class in the lookup chain — this module sits ahead of both, builds the Result via super and raises it.

Instance Method Summary collapse

Instance Method Details

#failure(value = nil, error = nil) ⇒ Object

Raises:



78
79
80
# File 'lib/spree/workflow.rb', line 78

def failure(value = nil, error = nil)
  raise FailureSignal.new(super)
end