From e04ff8c2c73d6772a57b64a6185074aaa5e3e405 Mon Sep 17 00:00:00 2001 From: Jared Nielson Date: Wed, 1 Sep 2021 16:03:18 -0600 Subject: [PATCH] Fix code sample Make the value of `unique_args` a symbol rather than the result of a method call. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4e4f53..2e83ece 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Specify method to define unique args: ```ruby class MyWorker include Resque::Plugins::BetterUnique - unique_job :while_executing, timeout: 5.minutes, unique_args: unique_job_arguments + unique_job :while_executing, timeout: 5.minutes, unique_args: :unique_job_arguments private