Class: Tenon::TenonContent::RowTypes::TwoColumnWithBackgroundImage
- Defined in:
- app/models/tenon/tenon_content/row_types/two_column_with_background_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/two_column_with_background_image.rb', line 6 def add_pieces_to(row) if row.pieces.empty? row.pieces.build(piece_type: 'Image', position: 0, size: 12) row.pieces.build(piece_type: 'Text', position: 1, size: 6) row.pieces.build(piece_type: 'Text', position: 2, size: 6) end end |