Skip to content

Commit

Permalink
delete if original_filename as explained in https://github.com/carr…
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Oct 30, 2023
1 parent 0c50a8b commit 5c8dc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/templates/uploader.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5c8dc98

Please sign in to comment.