Sha256: f8bd130ff8572def265e196b39540f919797f13c5a4c0bd5d3ce5f1c4e4497fb
Contents?: true
Size: 610 Bytes
Versions: 12
Compression:
Stored size: 610 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 kithe_derivatives: Shrine::Storage::FileSystem.new("public", prefix: "derivatives") # 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
12 entries across 12 versions & 1 rubygems