Sha256: 86385f574471191e8f43247fcbbdab5be37dde6557200d2aa6aabeef948181d4

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DummyResources
    class DummyResourceForm < Decidim::Form
      mimic :dummy_resource

      attribute :title, String
      attribute :body, String

      validates :title, :body, presence: true, etiquette: true
      validates :title, length: { maximum: 150 }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-dev-0.21.0 app/forms/decidim/dummy_resources/dummy_resource_form.rb
decidim-dev-0.20.1 app/forms/decidim/dummy_resources/dummy_resource_form.rb
decidim-dev-0.20.0 app/forms/decidim/dummy_resources/dummy_resource_form.rb
decidim-dev-0.19.1 app/forms/decidim/dummy_resources/dummy_resource_form.rb
decidim-dev-0.19.0 app/forms/decidim/dummy_resources/dummy_resource_form.rb