Sha256: 7748a6d316682499736bfdcf580b9ee21c8cc18444b66a3be7ace480bb117b96

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A command with all the business logic to create a new category in the
    # system.
    class CreateCategory < Decidim::Commands::CreateResource
      fetch_form_attributes :name, :weight, :parent_id, :participatory_space

      protected

      def resource_class = Decidim::Category
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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