Class: AssetLink::Job

Inherits:
BuilderJob
  • Object
show all
Defined in:
app/jobs/asset_link/job.rb

Overview

Convenient mechanism for queueing the creation of AssetLink instances where there is singular parent with lots of children.

Instance Method Summary collapse

Constructor Details

#initialize(parent, children) ⇒ Job

Returns a new instance of Job


4
5
6
# File 'app/jobs/asset_link/job.rb', line 4

def initialize(parent, children)
  super(children.map { |child| [parent.id, child.id] })
end