Sha256: e455b59b1979ada344f665181a631c712e0ab318c59f315bab9461557117c952
Contents?: true
Size: 381 Bytes
Versions: 25
Compression:
Stored size: 381 Bytes
Contents
# frozen_string_literal: true module Decidim class ResendConfirmationInstructions < Decidim::Command def initialize(user) @user = user @unconfirmed_email = user.unconfirmed_email end def call return broadcast(:invalid) unless @unconfirmed_email ResendConfirmationInstructionsJob.perform_later(@user) broadcast(:ok) end end end
Version data entries
25 entries across 25 versions & 1 rubygems