Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small fix for rails worker proxy

  • Loading branch information...
commit 60796e859b3144705dbd6450e9c147768c2a0118 1 parent f391764
@gnufied authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/backgroundrb/rails_worker_proxy.rb
View
2  lib/backgroundrb/rails_worker_proxy.rb
@@ -18,7 +18,7 @@ def method_missing(method_id,*args)
arg,job_key,host_info,scheduled_at = arguments && arguments.values_at(:arg,:job_key,:host,:scheduled_at)
# allow both arg and args
- arg ||= arguments[:args]
+ arg ||= arguments && arguments[:args]
new_schedule = (scheduled_at && scheduled_at.respond_to?(:utc)) ? scheduled_at.utc : Time.now.utc
Please sign in to comment.
Something went wrong with that request. Please try again.