Sha256: 6c015d00bb69ab0b62a2d2da0509583868fe18aad5c770f146f9ecf5d348f12b
Contents?: true
Size: 295 Bytes
Versions: 83
Compression:
Stored size: 295 Bytes
Contents
module Spree module TestingSupport module ImageHelpers def create_image(attachable, file) image = attachable.images.new image.attachment.attach(io: file, filename: File.basename(file)) image.save! file.rewind image end end end end
Version data entries
83 entries across 83 versions & 1 rubygems