diff --git a/spec/clowne/integrations/circular_clone_spec.rb b/spec/clowne/integrations/circular_clone_spec.rb index 7626c2c..3416188 100644 --- a/spec/clowne/integrations/circular_clone_spec.rb +++ b/spec/clowne/integrations/circular_clone_spec.rb @@ -70,7 +70,11 @@ class CellCloner < Clowne::Cloner mapper = operation.mapper - # replace with your cells selection logic + # replace with your cells selection logic: + # cells = Cell.all or + # cells = table.rows.flat_map(&:cells) or + # cells = table.columns.flat_map(&:cells) or + # cells = Cell.where(row_id: table.rows.pluck(:id)) etc. cells.each do |cell| AR::CellCloner.call(cell, mapper: mapper).to_record.save! end