
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)
thumb.save
end
end
Comments and changes to this ticket
-
svpino (at gmail) May 5th, 2008 @ 11:36 PM
- Title changed from rename_file doesn't rename thumbnails to rename_file doesn't renas
-
svpino (at gmail) May 5th, 2008 @ 11:37 PM
- Title changed from rename_file doesn't renas to rename_file doesn't rename thumbnails
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป