6
7
8
9
10
11
12
13
14
15
|
# File 'app/models/tenon/tenon_content/row_types/six_column_image.rb', line 6
def add_pieces_to(row)
if row.pieces.empty?
row.pieces.build(piece_type: 'Image', position: 0, size: 'two')
row.pieces.build(piece_type: 'Image', position: 1, size: 'two')
row.pieces.build(piece_type: 'Image', position: 2, size: 'two')
row.pieces.build(piece_type: 'Image', position: 3, size: 'two')
row.pieces.build(piece_type: 'Image', position: 4, size: 'two')
row.pieces.build(piece_type: 'Image', position: 5, size: 'two')
end
end
|