Sha256: 6f33437079a1e2a15bb68483b39819bae46d6862116186d81e2755d74d95f9a7

Contents?: true

Size: 281 Bytes

Versions: 62

Compression:

Stored size: 281 Bytes

Contents

module Workarea
  class Lint
    class ProductsMissingImages < Lint
      def run
        Catalog::Product
          .any_of({ images: nil }, { images: [] })
          .each_by(100) do |product|
            warn("#{product.id},No images")
          end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.27 lib/workarea/lint/products_missing_images.rb
workarea-core-3.5.4 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.26 lib/workarea/lint/products_missing_images.rb
workarea-core-3.5.3 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.25 lib/workarea/lint/products_missing_images.rb
workarea-core-3.5.2 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.24 lib/workarea/lint/products_missing_images.rb
workarea-core-3.5.1 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.23 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.22 lib/workarea/lint/products_missing_images.rb
workarea-core-3.5.0 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.21 lib/workarea/lint/products_missing_images.rb
workarea-core-3.5.0.beta.1 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.20 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.19 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.18 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.17 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.16 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.15 lib/workarea/lint/products_missing_images.rb
workarea-core-3.4.14 lib/workarea/lint/products_missing_images.rb