Sha256: 66db3661844daf743823b1063b7c6847cbed721f6b0f27c6c53d23a8d77b77fd

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    class CreateImportExample < Rectify::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

12 entries across 12 versions & 1 rubygems

Version Path
decidim-admin-0.26.10 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.9 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.8 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.7 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.5 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.4 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.3 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.2 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.1 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.0 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.0.rc2 app/commands/decidim/admin/create_import_example.rb
decidim-admin-0.26.0.rc1 app/commands/decidim/admin/create_import_example.rb