From 72225e32ef275c3f2c976d5c4fdd6a18caf26280 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 21 Feb 2021 19:41:04 +0100 Subject: [PATCH] Docs --- config/initializers/shrine.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/shrine.rb b/config/initializers/shrine.rb index da784f7..da0a179 100644 --- a/config/initializers/shrine.rb +++ b/config/initializers/shrine.rb @@ -11,6 +11,8 @@ Shrine.storages = { } # See plugin documentation at https://shrinerb.com/docs/plugins/activerecord +# Persist images. Promote from :cache to :store when Screenshot.save is called. +# Delete files if the Screenshot get destroyed. Shrine.plugin :activerecord Shrine.plugin :instrumentation Shrine.plugin :determine_mime_type, analyzer: :marcel, log_subscriber: nil