lib/trailblazer/activity/adds.rb in trailblazer-activity-0.14.0 vs lib/trailblazer/activity/adds.rb in trailblazer-activity-0.15.0
- old
+ new
@@ -42,11 +42,12 @@
build_adds(task, **options)
end
end
# @private
- def self.build_adds(task, id:, prepend: "task_wrap.call_task", append: nil)
- insert, insert_id = append ? [:Append, append] : [:Prepend, prepend]
+ def self.build_adds(task, id:, prepend: "task_wrap.call_task", append: false)
+ insert, insert_id =
+ append === false ? [:Prepend, prepend] : [:Append, append]
{
insert: [Activity::Adds::Insert.method(insert), insert_id],
row: TaskWrap::Pipeline::Row(id, task)
}