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