Sha256: dca8d83ca0b514cfccbaeace9fd2e29fbdb7bcbdd8041fe6c810532b5fe826a0
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
require "shrine" require "shrine/storage/file_system" Shrine.storages = { cache: Shrine::Storage::FileSystem.new("public", prefix: "uploads/cache"), # temporary store: Shrine::Storage::FileSystem.new("public", prefix: "uploads") # permanent } Shrine.plugin :activerecord Shrine.plugin :upload_endpoint Shrine.plugin :cached_attachment_data # for retaining the cached file across form redisplays Shrine.plugin :restore_cached_data # re-extract metadata when attaching a cached file
Version data entries
3 entries across 3 versions & 1 rubygems