Sha256: 18eb66a90e4e17ac3f0b3e1425fa16fe67de1d656d438db8c7f0f6d15a2a79eb
Contents?: true
Size: 328 Bytes
Versions: 22
Compression:
Stored size: 328 Bytes
Contents
module DiscoApp::Concerns::SynchroniseResourcesJob extend ActiveSupport::Concern def perform(shop, class_name, params) klass = class_name.constantize klass::SHOPIFY_API_CLASS.find(:all, params: params).map do |shopify_resource| klass.synchronise(@shop, shopify_resource.serializable_hash) end end end
Version data entries
22 entries across 22 versions & 1 rubygems