Class: Decidim::Forms::MatrixReadonlyCell

Inherits:
ViewModel
  • Object
show all
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_optionsObject



7
8
9
# File 'app/cells/decidim/forms/matrix_readonly_cell.rb', line 7

def answer_options
  model.question.answer_options.map { |option| translated_attribute(option.body) }.join(" / ")
end