Sha256: 050f39a1ae8cfae8dd0adafa4352ca40833cc20a77e6cf3c1b186f0102dff831

Contents?: true

Size: 400 Bytes

Versions: 26

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    module Admin
      # A form object used to create responses for a question from the admin dashboard.
      class ResponseForm < Form
        include TranslatableAttributes

        mimic :response

        translatable_attribute :title, String

        validates :title, translatable_presence: true
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
decidim-consultations-0.13.0.pre1 app/forms/decidim/consultations/admin/response_form.rb
decidim-consultations-0.12.0 app/forms/decidim/consultations/admin/response_form.rb
decidim-consultations-0.11.2 app/forms/decidim/consultations/admin/response_form.rb
decidim-consultations-0.12.0.pre app/forms/decidim/consultations/admin/response_form.rb
decidim-consultations-0.11.1 app/forms/decidim/consultations/admin/response_form.rb
decidim-consultations-0.11.0.pre1 app/forms/decidim/consultations/admin/response_form.rb