Sha256: 078b1ee2b52f4f81c8b68dc8b0a9b5ed915723e8cff4853ac6212997e1857114
Contents?: true
Size: 259 Bytes
Versions: 25
Compression:
Stored size: 259 Bytes
Contents
# frozen_string_literal: true module Decidim class ValidateUpload < Decidim::Command def initialize(form) @form = form end def call return broadcast(:invalid, @form.errors) if @form.invalid? broadcast(:ok) end end end
Version data entries
25 entries across 25 versions & 1 rubygems