Class: Tenon::TenonContent::RowTypes::FullWidthEmbeddedContent

Inherits:
Base
  • Object
show all
Defined in:
app/models/tenon/tenon_content/row_types/full_width_embedded_content.rb

Class Method Summary collapse

Methods inherited from Base

partial_path

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: 12) if row.pieces.empty?
end