Class: Tenon::TenonContent::Row
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Tenon::TenonContent::Row
- Includes:
- Reorderable
- Defined in:
- app/models/tenon/tenon_content/row.rb
Instance Method Summary collapse
Methods included from Reorderable
Instance Method Details
#row_type_class ⇒ Object
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 |