Sha256: 5750e8fc14af730f557958efa5b909f28aa6e5b248020fe324d47a2dc72ecf00
Contents?: true
Size: 568 Bytes
Versions: 10
Compression:
Stored size: 568 Bytes
Contents
# frozen_string_literal: true module Decidim module Forms # The data store for a QuestionMatrix in the Decidim::Forms component. class QuestionMatrixRow < Forms::ApplicationRecord include Decidim::TranslatableResource translatable_fields :body belongs_to :question, class_name: "Question", foreign_key: "decidim_question_id", counter_cache: :matrix_rows_count delegate :answer_options, :mandatory, :max_choices, to: :question scope :by_position, -> { order(:position) } default_scope { by_position } end end end
Version data entries
10 entries across 10 versions & 1 rubygems