Sha256: d59864647d7ee19a524e8ebb0c28659c5a8cfdc02d717f632fe45d3e7fce3489

Contents?: true

Size: 404 Bytes

Versions: 11

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Surveys
    # The data store for a Survey in the Decidim::Surveys component.
    class Survey < Surveys::ApplicationRecord
      include Decidim::Resourceable
      include Decidim::Forms::HasQuestionnaire
      include Decidim::HasComponent

      component_manifest_name "surveys"

      validates :questionnaire, presence: true
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
decidim-surveys-0.22.0 app/models/decidim/surveys/survey.rb
decidim-surveys-0.21.0 app/models/decidim/surveys/survey.rb
decidim-surveys-0.20.1 app/models/decidim/surveys/survey.rb
decidim-surveys-0.20.0 app/models/decidim/surveys/survey.rb
decidim-surveys-0.19.1 app/models/decidim/surveys/survey.rb
decidim-surveys-0.18.1 app/models/decidim/surveys/survey.rb
decidim-surveys-0.19.0 app/models/decidim/surveys/survey.rb
decidim-surveys-0.17.2 app/models/decidim/surveys/survey.rb
decidim-surveys-0.18.0 app/models/decidim/surveys/survey.rb
decidim-surveys-0.17.1 app/models/decidim/surveys/survey.rb
decidim-surveys-0.17.0 app/models/decidim/surveys/survey.rb