From c39d92ec68611c52817bdf1ee8625d4cdba70fd7 Mon Sep 17 00:00:00 2001 From: Brandur Date: Sat, 10 Oct 2026 14:06:55 -0500 Subject: [PATCH] Make Ruby `#insert_opts` example a one liner Just a tiny docs change that makes a Ruby example involving `#insert_opts` into a one liner so it looks nicer: def insert_opts = River::InsertOpts.new(max_attempts: 6, queue: :orders) --- ruby/docs/migrating_from_sidekiq.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ruby/docs/migrating_from_sidekiq.md b/ruby/docs/migrating_from_sidekiq.md index 9879af971..95f7caff7 100644 --- a/ruby/docs/migrating_from_sidekiq.md +++ b/ruby/docs/migrating_from_sidekiq.md @@ -138,12 +138,9 @@ class FulfillOrderArgs @order_id = order_id end + def insert_opts = River::InsertOpts.new(max_attempts: 6, queue: :orders) def kind = "fulfill_order" def to_json = JSON.generate(order_id: @order_id) - - def insert_opts - River::InsertOpts.new(max_attempts: 6, queue: :orders) - end end class FulfillOrderWorker