Class: Decidim::Forms::MatrixReadonlyCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Forms::MatrixReadonlyCell
- Defined in:
- app/cells/decidim/forms/matrix_readonly_cell.rb
Overview
This cell renders a possible matrix answer of a question (readonly)
Instance Method Summary collapse
Instance Method Details
#answer_options ⇒ Object
7 8 9 |
# File 'app/cells/decidim/forms/matrix_readonly_cell.rb', line 7 def model.question..map { |option| translated_attribute(option.body) }.join(" / ") end |