Sha256: aaf88273f33c3b2e1b4324c09de9f137aff89148aebb55a2ff893c5cdff2bb90

Contents?: true

Size: 463 Bytes

Versions: 90

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A form object to create or update attachment collections.
    class AttachmentCollectionForm < Form
      include TranslatableAttributes

      translatable_attribute :name, String
      translatable_attribute :description, String
      attribute :weight, Integer, default: 0

      mimic :attachment_collection

      validates :name, :description, translatable_presence: true
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-admin-0.20.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.20.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.19.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.18.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.19.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.17.2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.18.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.17.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.16.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.17.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.16.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.15.2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.15.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.15.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.14.4 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.14.3 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.14.2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.14.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.13.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.12.2 app/forms/decidim/admin/attachment_collection_form.rb