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

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