envato / event_sourcery

A library for building event sourced applications in Ruby
MIT License
84 stars 10 forks source link

Add methods for emitting permitted events to Reactor module #81

Closed andrewgr closed 7 years ago

andrewgr commented 7 years ago

This PR allows to do this:

emit_license_granted_event(aggregate_id, body)

instead if this:

emit_event(
  type: Events::LICENSE_GRANTED,
  aggregate_id: aggregate_id,
  body: body
)
andrewgr commented 7 years ago

Cheers @vonconrad. I'll wait for more approvals before merging it.