#26 new
Pedro Belo

rename_file doesn't rename thumbnails

Reported by Pedro Belo | May 1st, 2008 @ 02:33 PM

I'm working in a new backend for attachment_fu based on the s3 and noticed that when you manually rename a picture filename the thumbnails are not renamed.

You can check this in both s3 and file_system backends.

Quick solution for me was to add this logic to rename_file:

if thumbnailable?

thumbnails.each do |thumb|

thumb.filename = filename

thumb.filename = thumb.thumbnail_name_for(thumb.thumbnail)




Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket