Sha256: f3d6ff1581f5ed03af1639abbe1cb80591f099d307cefb98e067926022443a82
Contents?: true
Size: 773 Bytes
Versions: 7
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # Custom ApplicationJob scoped to the admin panel. # class VerifyUserGroupFromCsvJob < ApplicationJob queue_as :default def perform(email, verifier, organization) @organization = organization @email = email.downcase.strip return if email.blank? return unless user_group Decidim::Admin::VerifyUserGroup.call(user_group, verifier, true) end private def user_group @user_group ||= UserGroup.where(organization: @organization) .where.not(confirmed_at: nil) .not_verified .find_by(email: @email) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems