Sha256: a89bd7b7bcb2ceaba51eae01074356dba3479a5fa0e9acacdc85fa03900d70d6

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true
module Decidim
  module Admin
    # A form object used to attach a feature to a participatory process from the
    # admin panel.
    #
    class FeatureForm < Decidim::Form
      include TranslatableAttributes

      mimic :feature

      translatable_attribute :name, String
      validates :name, translatable_presence: true
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
decidim-admin-0.0.1 app/forms/decidim/admin/feature_form.rb
decidim-0.0.1 decidim-admin/app/forms/decidim/admin/feature_form.rb