From 5c8dc982ee436b0733d0594f2f975731fb63e265 Mon Sep 17 00:00:00 2001 From: Yohta Kimura Date: Mon, 30 Oct 2023 09:08:16 +0900 Subject: [PATCH] delete `if original_filename` as explained in https://github.com/carrierwaveuploader/carrierwave/blob/master/README.md#changing-the-filename --- lib/generators/templates/uploader.rb.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/templates/uploader.rb.erb b/lib/generators/templates/uploader.rb.erb index a64151161..454b4f07f 100644 --- a/lib/generators/templates/uploader.rb.erb +++ b/lib/generators/templates/uploader.rb.erb @@ -42,6 +42,6 @@ class <%= class_name %>Uploader < CarrierWave::Uploader::Base # Override the filename of the uploaded files: # Avoid using model.id or version_name here, see uploader/store.rb for details. # def filename - # "something.jpg" if original_filename + # "something.jpg" # end end