Class: NetworkEntitySyncJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- NetworkEntitySyncJob
- Defined in:
- app/jobs/network_entity_sync_job.rb
Overview
Synchronize entity with main site
Instance Method Summary collapse
Instance Method Details
#perform(entity_class, entity_id) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/jobs/network_entity_sync_job.rb', line 9 def perform(entity_class, entity_id) handler = handler_from_string(entity_class) return if handler.nil? handler.entity = model_from_string(entity_class, entity_id) handler.push end |