Class: Tenon::TenonContent::Row

Inherits:
ApplicationRecord show all
Includes:
Reorderable
Defined in:
app/models/tenon/tenon_content/row.rb

Instance Method Summary collapse

Methods included from Reorderable

included

Instance Method Details

#row_type_classObject



24
25
26
# File 'app/models/tenon/tenon_content/row.rb', line 24

def row_type_class
  "Tenon::TenonContent::RowTypes::#{row_type}".constantize
end

#set_row_type(row_type) ⇒ Object



19
20
21
22
# File 'app/models/tenon/tenon_content/row.rb', line 19

def set_row_type(row_type)
  self.row_type = row_type
  build_pieces
end