Skip to content

Commit

Permalink
small fix for rails worker proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Mar 30, 2009
1 parent f391764 commit 60796e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backgroundrb/rails_worker_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60796e8

Please sign in to comment.