carrierwaveuploader / carrierwave

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
https://github.com/carrierwaveuploader/carrierwave
8.78k stars 1.66k forks source link

Version file name customisation does not seem to work since v3.0.6 #2747

Closed highhi closed 3 months ago

highhi commented 4 months ago

Rails 7.1.3.4 Ruby 3.3.4

Changing the file name of an image will result in the image not being output. Seems to have stopped working since 3.0.6. It worked in 3.0.5.

# Images of this version are not output.

version :thumb do
  def full_filename(for_file)
    "image.jpg"
  end
end

I could not find the cause of the problem for me as I checked the code and it seemed to pass the test. I would appreciate it if you could confirm this.

highhi commented 3 months ago

Sorry. This seems to have been a mistake on my part. I can confirm that it is working correctly. This Issue is closed.