Sha256: 8bbb6a1cf1e7b8b173fcf8d3e17260771a5541493eed383ce29eae1bc4949b5f

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 a scope type.
    class CreateScopeType < Decidim::Commands::CreateResource
      fetch_form_attributes :name, :organization, :plural

      private

      def resource_class = Decidim::ScopeType
    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_scope_type.rb
decidim-admin-0.29.0 app/commands/decidim/admin/create_scope_type.rb
decidim-admin-0.29.0.rc4 app/commands/decidim/admin/create_scope_type.rb
decidim-admin-0.29.0.rc3 app/commands/decidim/admin/create_scope_type.rb
decidim-admin-0.29.0.rc2 app/commands/decidim/admin/create_scope_type.rb
decidim-admin-0.29.0.rc1 app/commands/decidim/admin/create_scope_type.rb