Class: Tenon::TenonContent::RowTypes::FourColumnImage
- Defined in:
- app/models/tenon/tenon_content/row_types/four_column_image.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.add_pieces_to(row) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/models/tenon/tenon_content/row_types/four_column_image.rb', line 6 def add_pieces_to(row) if row.pieces.empty? row.pieces.build(piece_type: 'Image', position: 0, size: 'three') row.pieces.build(piece_type: 'Image', position: 1, size: 'three') row.pieces.build(piece_type: 'Image', position: 2, size: 'three') row.pieces.build(piece_type: 'Image', position: 3, size: 'three') end end |