README.md in dispatch-rider-0.1.1.1 vs README.md in dispatch-rider-0.1.2
- old
+ new
@@ -185,11 +185,11 @@
some_block_around do
job.call
end
end
- config.error_handler = DefaultErrorHandler # an object that responds to .call(message, exception)
+ config.error_handler = DispatchRider::DefaultErrorHandler # an object that responds to .call(message, exception)
config.queue_kind = :sqs
config.queue_info = { name: "queue-production" }
config.handler_path = Rails.root + "app/handlers" # path to handler files to be autoloaded
@@ -269,13 +269,21 @@
#### Airbrake Support
Airbrake is supported out of the box. All you need to do is:
1. Install and configure the [airbrake gem](https://github.com/airbrake/airbrake).
-2. Use the `AirbrakeErrorHandler`.
+2. Use the `DispatchRider::AirbrakeErrorHandler`.
```ruby
-subscriber.setup_demultiplexer(kind, AirbrakeErrorHandler)
+subscriber.setup_demultiplexer(kind, DispatchRider::AirbrakeErrorHandler)
+```
+
+or set it up in the config ...
+
+```ruby
+DispatchRider.config do |config|
+ config.error_handler = DispatchRider::AirbrakeErrorHandler
+end
```
## Contributing
### Process