bkeepers/qu — Issue #35: (hooks) Job initialize called on create
Author: gregory-m
Created: 2011-11-24 14:30:32+00:00
State: open

Hi.

In hooks branch you suggest to move all finders into job initialize method, and only this method will get arguments.

But you call initialize on job creation, so this will double my DB queries. Yes I can do some thing like this:

```

class ProcessPresentation < Qu::Job
def initialize(presentation_id)
@presentation_id = presentation_id
end

def perform
Presentation.find(@presentation_id).process!
end
end

```

But this looks like a hack for me.