Sha256: fb28002c00d04b17220953f7a4aa1a10f70957f7c61fd0844628192288858762

Contents?: true

Size: 445 Bytes

Versions: 88

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Sortitions
    module Admin
      class DestroySortitionForm < Form
        include TranslatableAttributes

        mimic :sortition

        translatable_attribute :cancel_reason, String

        validates :cancel_reason, translatable_presence: true

        delegate :current_participatory_space, to: :context
        delegate :current_component, to: :context
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
decidim-sortitions-0.13.0 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.12.1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.13.0.pre1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.12.0 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.11.2 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.12.0.pre app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.11.1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.11.0.pre1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb