Skip to content

Commit

Permalink
Merge pull request #2711 from rajyan/original-filename-cleanup
Browse files Browse the repository at this point in the history
delete `if original_filename` as explained in https://github.com/carr…
  • Loading branch information
mshibuya committed Nov 23, 2023
2 parents 0c50a8b + 5c8dc98 commit a4ccfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/templates/uploader.rb.erb
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 a4ccfe7

Please sign in to comment.