Sha256: d546ba3ea0327c64c42b76e95b964b52af60bc268820b24beb89bcb417a40406
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module Paperweight # Queues post processing. class PostProcessJob < ActiveJob::Base queue_as :default discard_on ActiveJob::DeserializationError def perform(model, name, url) tempfile = Download.new.download(url) model.update!(name => tempfile, :"#{name}_processing" => nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paperweight-1.0.0 | lib/paperweight/post_process_job.rb |