Sha256: ed30e074054f5a7477b45e410926cee9a07a2be8bb245d32a280bc5b7a76dbac

Contents?: true

Size: 339 Bytes

Versions: 59

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Forms
    # This cell renders a possible matrix answer of a question (readonly)
    class MatrixReadonlyCell < Decidim::ViewModel
      def answer_options
        model.question.answer_options.map { |option| translated_attribute(option.body) }.join(" / ")
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
decidim-forms-0.29.1 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.4 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.27.9 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.29.0 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.3 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.27.8 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.29.0.rc4 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.29.0.rc3 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.29.0.rc2 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.29.0.rc1 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.2 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.27.7 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.1 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.27.6 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.26.10 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.26.9 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.0 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.27.5 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.0.rc5 app/cells/decidim/forms/matrix_readonly_cell.rb
decidim-forms-0.28.0.rc4 app/cells/decidim/forms/matrix_readonly_cell.rb