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