Sha256: de6edef2ba7d97cee777b934718e8b9cef56f71d5ad27b31c8957c2a6387bd1e

Contents?: true

Size: 513 Bytes

Versions: 90

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A form object to create or update areas.
    class AreaTypeForm < Form
      include TranslatableAttributes

      translatable_attribute :name, String
      translatable_attribute :plural, String
      attribute :organization, Decidim::Organization

      mimic :area_type

      validates :name, :plural, translatable_presence: true
      validates :organization, presence: true

      alias organization current_organization
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.4 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.27.9 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.29.0 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.3 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.27.8 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.29.0.rc4 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.29.0.rc3 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.29.0.rc2 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.29.0.rc1 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.2 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.27.7 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.1 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.27.6 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.26.10 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.26.9 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.0 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.27.5 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.0.rc5 app/forms/decidim/admin/area_type_form.rb
decidim-admin-0.28.0.rc4 app/forms/decidim/admin/area_type_form.rb