palkan / active_event_store

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

ActiveSupport.on_load not being called #4

Closed chriscz closed 3 years ago

chriscz commented 3 years ago

What did you do?

I set up active_event_store according to the instructions:

ActiveSupport.on_load :active_event_store do |store|
  store.subscribe MyEventHandler, to: ProfileCreated
end

What did you expect to happen?

I expected the on_load block to be executed.

What actually happened?

The block doesn't execute

Additional context

Environment

Ruby Version: 2.5.8

Framework Version (Rails, whatever): Rails 5.2.4.4

Active Event Store Version: 0.2.0

palkan commented 3 years ago

Thanks for the reproduction! Checking now.

palkan commented 3 years ago

Fixed and released in 0.2.1