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