Skip to content

Commit

Permalink
Remove nil arguments before dispatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
runpaint committed Apr 24, 2009
1 parent 123bc02 commit d675ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octopi/lazy.rb
Expand Up @@ -15,7 +15,7 @@ def self.method_missing(method,*args)
def method_missing(method,*args)
if self.class.worker_class.respond_to? method
@args.concat args
self.class.worker_class.send(method,@args.first)
self.class.worker_class.send(method,*@args.compact)
else
self.init_worker
@worker.send(method,*args)
Expand Down

0 comments on commit d675ab6

Please sign in to comment.