Sha256: 631255f80761aaa8c89d0da5ecabdd19a710ced5ea458a80c9fb7f2943c1617e

Contents?: true

Size: 422 Bytes

Versions: 11

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module DynamicImage
  module Jobs
    # = Create variant
    #
    # Creates an image variant.
    class CreateVariant < ActiveJob::Base
      queue_as :dis

      def perform(record, options, size)
        size_v = Vector2d.parse(size)
        DynamicImage::ProcessedImage.new(record, options)
                                    .find_or_create_variant(size_v)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dynamic_image-2.1.5 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-3.0.2 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-3.0.1 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-3.0.0 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.1.4 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.1.3 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.1.2 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.1.1 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.1.0 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.0.25 lib/dynamic_image/jobs/create_variant.rb
dynamic_image-2.0.24 lib/dynamic_image/jobs/create_variant.rb