Sha256: abb7466e776128e3c56d74b915543c26112f257d74cdefc3bfd1d3247f2bd18f

Contents?: true

Size: 342 Bytes

Versions: 25

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    class CreateImportExample < Decidim::Command
      def initialize(form)
        @form = form
      end

      def call
        return broadcast(:invalid) if form.invalid?

        broadcast(:ok, form.example)
      end

      private

      attr_reader :form
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.4 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.9 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.29.0 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.3 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.8 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.29.0.rc4 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.29.0.rc3 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.29.0.rc2 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.29.0.rc1 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.2 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.7 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.1 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.6 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.0 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.5 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.0.rc5 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.28.0.rc4 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.4 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.27.3 app/commands/decidim/admin/create_import_example.rb