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,