Sha256: f4d11db33f695c123c9c41556b74335219e47ac088d1c73eb55d9bf090d38df9
Contents?: true
Size: 794 Bytes
Versions: 8
Compression:
Stored size: 794 Bytes
Contents
# frozen_string_literal: true require 'global_registry_bindings/workers/pull_mdm_id_worker' module GlobalRegistry #:nodoc: module Bindings #:nodoc: module Model #:nodoc: module PullMdm extend ActiveSupport::Concern included do GlobalRegistry::Bindings::Workers.mdm_worker_class(self) after_commit :pull_mdm_id_from_global_registry_async, on: %i[create update] end def pull_mdm_id_from_global_registry_async return if global_registry_entity.condition?(:if) return unless global_registry_entity.condition?(:unless) "::GlobalRegistry::Bindings::Workers::#{global_registry_entity.mdm_worker_class_name}" .constantize .perform_async(self.class, id) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems