Sha256: 63db78fd639a4dd05b335b679762510c789e01d0f5095a3078f1ed37c4d5c79e

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A command with all the business logic when creating an area type.
    class CreateAreaType < Decidim::Commands::CreateResource
      fetch_form_attributes :name, :organization, :plural

      protected

      def resource_class = Decidim::AreaType
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/commands/decidim/admin/create_area_type.rb
decidim-admin-0.29.0 app/commands/decidim/admin/create_area_type.rb
decidim-admin-0.29.0.rc4 app/commands/decidim/admin/create_area_type.rb
decidim-admin-0.29.0.rc3 app/commands/decidim/admin/create_area_type.rb
decidim-admin-0.29.0.rc2 app/commands/decidim/admin/create_area_type.rb
decidim-admin-0.29.0.rc1 app/commands/decidim/admin/create_area_type.rb