module Shrine::Plugins::RestoreCachedData::AttacherMethods
Private Instance Methods
cached(value, **options)
click to toggle source
Calls superclass method
# File lib/shrine/plugins/restore_cached_data.rb, line 14 def cached(value, **options) cached_file = super # TODO: Remove this conditional when we remove the versions plugin if cached_file.is_a?(Hash) || cached_file.is_a?(Array) uploaded_file(cached_file) { |file| file.refresh_metadata!(**context, **options) } else cached_file.refresh_metadata!(**context, **options) end cached_file end