diff --git a/lib/resque/plugins/lock.rb b/lib/resque/plugins/lock.rb index dccfff2..d09f4a6 100644 --- a/lib/resque/plugins/lock.rb +++ b/lib/resque/plugins/lock.rb @@ -53,6 +53,7 @@ def lock_timeout # passed the same arguments as `perform`, that is, your job's # payload. def lock(*args) + args.map! { |a| a.is_a?(Symbol) ? a.to_s : a } "lock:#{name}-#{args.to_s}" end