β€”

title: Shrine 3.10.0

New features

β€œβ€˜rb Shrine.storages = { cache: Shrine::Storage::S3.new(endpoint: β€œstage.example.com”, prefix: β€œcache”), store: Shrine::Storage::S3.new(endpoint: β€œstage.example.com”), fallback: Shrine::Storage::S3.new(endpoint: β€œproduction.example.com”), }

Shrine.plugin :fallback_storage # looks for the :fallback storage by default Shrine.plugin :fallback_storage, store: :production_store # custom storage name β€œβ€˜

rb plugin :data_uri, max_size: 10*1024*1024 # 10 MB

rb plugin :data_uri, error_message: ->(uri, error) { I18n.t("errors.data_uri.#{error.message}") }