palkan / active_event_store

Rails Event Store in a more Rails way
MIT License
181 stars 13 forks source link

updates event registration README instruction #15

Closed antsmc2 closed 10 months ago

antsmc2 commented 10 months ago

What is the purpose of this pull request?

What changes did you make? (overview)

Looks like the correct way to register an event is

ActiveEventStore.mapping.register_event MyEventClass

or

ActiveEventStore.mapping.register "my_event", MyEventClass

This PR updates the READMe to reflect this.

Is there anything you'd like reviewers to focus on?

Please confirm the readme updates are correct.

Checklist

palkan commented 10 months ago

Thanks!