diff --git a/CHANGELOG.md b/CHANGELOG.md index 58b59e7..d871036 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.15.0] - 2024-06-05 +### Added +- Support for custom reciving handler via `Rabbit.config.handler_resolver_callable` config; + ## [0.14.0] - 2023-02-27 ### Added - Exception notifier is required diff --git a/README.md b/README.md index cd39a21..232c7d6 100644 --- a/README.md +++ b/README.md @@ -149,14 +149,14 @@ Rabbit.publish( to teardown and setup external connections between daemon restarts, for example ORM connections - After the server runs, received messages are handled by `Rabbit::EventHandler` subclasses in two possible ways: - a) Subclasses are selected by following code(by default): - ```ruby - "rabbit/handler/#{group_id}/#{event}".camelize.constantize - ``` - b) you can change default behaviour to your own logic by setting the `handler_resolver_callable` config option with a `Proc` that should return the handler class: - ```ruby - Rabbit.config.handler_resolver_callable = -> (group_id, event) { "recivers/#{group_id}/#{event}".camelize.constantize } - ``` + - a) Subclasses are selected by following code(by default): + ```ruby + rabbit/handler/#{group_id}/#{event}".camelize.constantize + ``` + - b) you can change default behaviour to your own logic by setting the `handler_resolver_callable` config option with a `Proc` that should return the handler class: + ```ruby + Rabbit.config.handler_resolver_callable = -> (group_id, event) { "recivers/#{group_id}/#{event}".camelize.constantize } + ``` They use powerful `Tainbox` api to handle message data. Project_id also passed to them.