Class: Tenon::TenonContent::RowTypes::FullWidthEmbeddedContent
- Defined in:
- app/models/tenon/tenon_content/row_types/full_width_embedded_content.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.add_pieces_to(row) ⇒ Object
6 7 8 |
# File 'app/models/tenon/tenon_content/row_types/full_width_embedded_content.rb', line 6 def add_pieces_to(row) row.pieces.build(piece_type: 'EmbeddedContent', position: 0, size: 'twelve') if row.pieces.empty? end |