Sha256: 39ac381b589b8329457a328541b838b16644306b24e8dab35a6c9107d1ea6f86
Contents?: true
Size: 385 Bytes
Versions: 62
Compression:
Stored size: 385 Bytes
Contents
module Workarea module AssetEndpoints class ProductImages < Base def result Catalog::Product .find_by(slug: params[:slug]) .images .find(params[:image_id]) .process(params[:job]) rescue Mongoid::Errors::DocumentNotFound Catalog::ProductPlaceholderImage.cached.process(params[:job]) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems