Class: Synapse::EventSourcing::AcceptAllConflictResolver

Inherits:
ConflictResolver show all
Defined in:
lib/synapse/event_sourcing/conflict_resolver.rb

Overview

Conflict resolver that accepts any unseen changes to an aggregate

Instance Method Summary collapse

Instance Method Details

#resolve_conflicts(applied_changes, committed_changes) ⇒ undefined

Parameters:

  • applied_changes (Array)

    List of changes applied to the aggregate

  • committed_changes (Array)

    List of events that were unexpected by the command handler

Returns:

  • (undefined)

Raises:

  • (ConflictingModificationException)

    If any conflicts were detected



28
# File 'lib/synapse/event_sourcing/conflict_resolver.rb', line 28

def resolve_conflicts(applied_changes, committed_changes); end