Sha256: e78969838956c3bff604bdcd755c77de4eb6aa29ac416ea7eb96f568eb2d6cce

Contents?: true

Size: 412 Bytes

Versions: 16

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class DocumentBundleGenerateJob < Lcms::Engine::ApplicationJob
      extend ResqueJob

      queue_as :low

      def perform(resource, options)
        category = options[:category]
        unit = resource.unit? ? resource : resource.parents.detect(&:unit?)

        DocumentBundle.update_bundle(unit, category) if unit
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.5.4 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.5.3 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.5.2 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.5.1 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.5.0 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.4.2 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.4.1 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.4.0 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.3.1 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.1.4 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.3.0 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.1.3 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.2.0 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.1.2 app/jobs/lcms/engine/document_bundle_generate_job.rb
lcms-engine-0.1.0 app/jobs/lcms/engine/document_bundle_generate_job.rb