mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 22:06:47 +00:00
Update README.md
This commit is contained in:
parent
d34b3140a8
commit
5faeb60aec
@ -91,8 +91,8 @@ The Outboxable Gem provides a general-purpose polymorphic model for creating out
|
||||
```ruby
|
||||
ActiveRecord::Base.transaction do
|
||||
book = Book.find(1)
|
||||
book.update(title: 'Patterns of Enterprise Application Architecture', author: 'Martin Fowler')
|
||||
Outbox.create(
|
||||
book.update!(title: 'Patterns of Enterprise Application Architecture', author: 'Martin Fowler')
|
||||
Outbox.create!(
|
||||
routing_key: 'books.updated',
|
||||
exchange: 'YOUR RABBITMQ EXCHANGE',
|
||||
payload: book.as_json,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user