Sha256: d0d2e2f1bd23af4fb0ddbb9cfa2f67d34d96d242c9abd870f2416c125b631ad8

Contents?: true

Size: 306 Bytes

Versions: 122

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # A form object to be used when public users want to report a reportable.
  class ReportForm < Decidim::Form
    mimic :report

    attribute :reason, String
    attribute :details, String

    validates :reason, inclusion: { in: Report::REASONS }
  end
end

Version data entries

122 entries across 122 versions & 2 rubygems

Version Path
decidim-core-0.27.9 app/forms/decidim/report_form.rb
decidim-core-0.27.8 app/forms/decidim/report_form.rb
decidim-core-0.27.7 app/forms/decidim/report_form.rb
decidim-core-0.27.6 app/forms/decidim/report_form.rb
decidim-core-0.26.10 app/forms/decidim/report_form.rb
decidim-core-0.26.9 app/forms/decidim/report_form.rb
decidim-core-0.27.5 app/forms/decidim/report_form.rb
decidim-core-0.26.8 app/forms/decidim/report_form.rb
decidim-core-0.27.4 app/forms/decidim/report_form.rb
decidim-core-0.27.3 app/forms/decidim/report_form.rb
decidim-core-0.26.7 app/forms/decidim/report_form.rb
decidim-core-0.26.5 app/forms/decidim/report_form.rb
decidim-core-0.27.2 app/forms/decidim/report_form.rb
decidim-core-0.27.1 app/forms/decidim/report_form.rb
decidim-core-0.26.4 app/forms/decidim/report_form.rb
decidim-core-0.27.0 app/forms/decidim/report_form.rb
decidim-core-0.26.3 app/forms/decidim/report_form.rb
decidim-core-0.27.0.rc2 app/forms/decidim/report_form.rb
decidim-core-0.27.0.rc1 app/forms/decidim/report_form.rb
decidim-core-0.26.2 app/forms/decidim/report_form.rb