Module: GlobalRegistry::Bindings::Model::PullMdm

Extended by:
ActiveSupport::Concern
Defined in:
lib/global_registry_bindings/model/pull_mdm.rb

Instance Method Summary collapse

Instance Method Details

#pull_mdm_id_from_global_registry_asyncObject



16
17
18
19
20
21
# File 'lib/global_registry_bindings/model/pull_mdm.rb', line 16

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.name, id)
end