diff --git a/app/lib/active_storage/service/jekyll_service.rb b/app/lib/active_storage/service/jekyll_service.rb index 584bf06c..8ad46032 100644 --- a/app/lib/active_storage/service/jekyll_service.rb +++ b/app/lib/active_storage/service/jekyll_service.rb @@ -23,6 +23,14 @@ module ActiveStorage Pathname.new(path).dirname.basename.to_s end + # Elimina el archivo + # + # @param :key [String] + # @return [nil] + def delete(key) + FileUtils.rm_f(path_for(key)) + end + # Solo copiamos el archivo si no existe # # @param :key [String]