Sha256: b768e42c034b3802085cce967d14d405fa0c86ffd61c590dc0cc6d7be253dd9b

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

module Pageflow
  module LinkmapPage
    class ProcessSourceImageFileJob < ApplicationJob
      queue_as :resizing

      include StateMachineJob

      def perform_with_result(file, _options)
        file.attachment = file.source_image_file.attachment
        file.save!
        :ok
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.4.0 app/jobs/pageflow/linkmap_page/process_source_image_file_job.rb
pageflow-linkmap-page-2.3.0 app/jobs/pageflow/linkmap_page/process_source_image_file_job.rb
pageflow-linkmap-page-2.2.0 app/jobs/pageflow/linkmap_page/process_source_image_file_job.rb
pageflow-linkmap-page-2.1.0 app/jobs/pageflow/linkmap_page/process_source_image_file_job.rb
pageflow-linkmap-page-2.0.0 app/jobs/pageflow/linkmap_page/process_source_image_file_job.rb