Sha256: 34e17e29d242189335974868cb14c51354da17f8dd2cb2401d2496272b9d08e2

Contents?: true

Size: 386 Bytes

Versions: 6

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A command with all the business logic when creating a static page topic.
    class CreateStaticPageTopic < Decidim::Commands::CreateResource
      fetch_form_attributes :title, :description, :show_in_footer, :weight, :organization

      protected

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