Class: AssetLink::Job
- Inherits:
-
BuilderJob
- Object
- BuilderJob
- AssetLink::Job
- 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
-
#initialize(parent, children) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(parent, children) ⇒ Job
Returns a new instance of Job.
5 6 7 |
# File 'app/jobs/asset_link/job.rb', line 5 def initialize(parent, children) super(children.map { |child| [parent.id, child.id] }) end |