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 response of a question (readonly)

Instance Method Summary collapse

Instance Method Details

#response_optionsObject



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

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