Rails Event Store is a library for publishing and storing events, which can be further used to build your application state from them.
This can be a solid foundation for a design approach called event sourcing. It has many benefits and is an interesting if you happen to struggle with keeping maintainability of your application at a reasonable level.
The "core" of the solution is RubyEventStore. Core concepts are implemented in this gem. Ruby Event Store is unopinionated on how events are stored.
Rails Event Store provide persistence layer suitable for Ruby on Rails.