β€”

title: Shrine 3.1.0

New features

β€œβ€˜rb # with attachment module photo.image_derivatives!(storage: :other_store)

# with attacher attacher.create_derivatives(storage: :other_store) β€œβ€˜

rb Shrine.signature(io, rewind: false)

Improvements

β€œβ€˜rb class ImageUploader < Shrine Attacher.derivatives_processor do |original| # … end end

# can now be written as

class ImageUploader < Shrine Attacher.derivatives do |original| # … end end β€œβ€˜

Backwards compatibility

rb attacher = Shrine::Attacher.new(cache: "cache", store: "store") attacher.cache_key #=> :cache (previously "cache") attacher.store_key #=> :store (previously "store")