Sha256: c4d0a89621500004dbf67554d08708df337c560762879d4643a4b4fd2cadd92e

Contents?: true

Size: 449 Bytes

Versions: 12

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Dev
    class DummyResourceForm < Decidim::Form
      include Decidim::AttachmentAttributes

      mimic :dummy_resource

      attribute :title, String
      attribute :body, String
      attribute :attachment, AttachmentForm

      attachments_attribute :photos

      validates :title, :body, presence: true, etiquette: true
      validates :title, length: { in: 15..150 }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-dev-0.29.1 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.28.4 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.29.0 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.28.3 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.29.0.rc4 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.29.0.rc3 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.29.0.rc2 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.29.0.rc1 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.28.2 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.28.1 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.28.0 app/forms/decidim/dev/dummy_resource_form.rb
decidim-dev-0.28.0.rc5 app/forms/decidim/dev/dummy_resource_form.rb