Module: Operation::Rewind

Extended by:
ActiveSupport::Concern
Included in:
OperationBase
Defined in:
lib/flow/operation/rewind.rb

Instance Method Summary collapse

Instance Method Details

#rewindObject



13
14
15
16
17
18
19
# File 'lib/flow/operation/rewind.rb', line 13

def rewind
  run_callbacks(:rewind) do
    run_callbacks(:undo) { undo }
  end

  self
end

#undoObject



21
22
23
# File 'lib/flow/operation/rewind.rb', line 21

def undo
  # abstract method which should be defined by descendants to undo the functionality of the `#behavior` method
end