Sha256: 82c5bfdb1bd1f9495c9f92593bc078389b90194223787588678f2f9dc5022645

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

module Paperweight
  # Queues thumbnails for processing.
  class ThumbnailsJob < ActiveJob::Base
    queue_as :default

    discard_on ActiveJob::DeserializationError

    def perform(model, url)
      model.image.update_url(url)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paperweight-0.0.5 lib/paperweight/thumbnails_job.rb
paperweight-0.0.4 lib/paperweight/thumbnails_job.rb
paperweight-0.0.3 lib/paperweight/thumbnails_job.rb
paperweight-0.0.2 lib/paperweight/thumbnails_job.rb
paperweight-0.0.1 lib/paperweight/thumbnails_job.rb