Sha256: 60874227365a133d57b89d5aa9f94b60b93eb3a27a0c0b685a06c90d289ff918
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
def <%= command_name %>(payload) # Perform any relevant contextual validations on aggregate # Apply the event without persistence apply_event( <%= event_class_name %>, aggregate_id: id, body: payload, ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
event_sourcery_generators-0.2.0 | lib/event_sourcery_generators/generators/templates/command/aggregate/command_method.rb.tt |