From 5faeb60aec8e2a786075f01415cbdc761f655c1e Mon Sep 17 00:00:00 2001 From: Brusk Awat Date: Wed, 1 Mar 2023 00:46:27 +0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11f5af4..94d2e2a 100644 --- a/README.md +++ b/README.md @@ -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,