Sha256: 6a3141445636764dd3f142813c53899a3520390eade446d0d88c9b005282e1d7

Contents?: true

Size: 488 Bytes

Versions: 15

Compression:

Stored size: 488 Bytes

Contents

module Helena
  module Concerns
    module Questions
      module MatrixQuestions
        extend ActiveSupport::Concern

        def includes_labels?
          true
        end

        private

        def add_ressources
          @question.labels.build
          @question.sub_questions.build
        end

        def permited_params
          [:required, labels_attributes: labels_attributes, sub_questions_attributes: sub_questions_attributes]
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
helena-2.1.0 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-2.0.2 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-2.0.1 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-2.0.0 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.3.1 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.3.0 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.1.0 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.3 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.2 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.1 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.0.rc4 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.0.rc3 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.0.rc2 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-1.0.0.rc1 app/controllers/helena/concerns/questions/matrix_questions.rb
helena-0.3.3 app/controllers/helena/concerns/questions/matrix_questions.rb