Sha256: 51f8825681a8ad318cae57e3749201d3ebbd9182e4d25e3d136e17866549d4d7
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
module Alchemy class PictureThumb < BaseRecord # Stores the render result of a Alchemy::PictureVariant # in the Dragonfly S3 datastore # class Create def self.call(variant, signature, uid) image = variant.image image.store(path: uid) variant.picture.thumbs.create!( picture: variant.picture, signature: signature, uid: uid, ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy-dragonfly-s3-5.0.5 | app/models/alchemy/picture_thumb/create.rb |
alchemy-dragonfly-s3-4.0.4 | app/models/alchemy/picture_thumb/create.rb |