before_thumbnail_saved - attachment_fu helper does not work


I have added these lines in my model, but it does not work.

before_thumbnail_saved do |record, thumbnail|
thumbnail.update_attribute(:filename, thumbnail.public_filename(thumbnail.thumbnail.to_sym))


It keeps the filenames as if they were not touched.

Basically I want to store the full image path in the database table.

You should probably post this question to the attachment_fu Google
Group instead of the general Rails group:

That being said, I'm seeing the same issue with Rails 2.1 and the most
recent version of attachment_fu, pulled from Subversion (revision
3183). The after_resize callback is working fine, but the
before_thumbnail_saved callback doesn't appear to be called, at all.