Installation with Bundler
By default RailsEventStore will use the ActiveRecord event repository. If you want to use another event repository without loading unnecessary ActiveRecord dependency, you'll need to do:
gem 'rails_event_store', require: 'rails_event_store/all' gem 'your_custom_repository'
bundle install, Rails Event Store should be ready to be used.
See custom repository README to learn how to setup its data store.
Configure custom repository
Rails.application.configure do config.to_prepare do Rails.configuration.event_store = RailsEventStore::Client.new( repository: YourCustomRepository.new ) end end
Community event repositories
Those repositories were written by community members and are not guaranteed to be up to date with latest Rails event store.