Tuesday, September 9, 2008

attachment_fu, Rails 2.1 and before_thumbnail_saved

I was working on before_thumbnail_saved callback in Rails 2.1 and it seems it has changed! It didn't work with me anymore. At least my old code didn't.

Apparently, you only pass the thumbnail into the loop.

Read this blog post for details.

2 comments:

Sucr said...

Hi
There is a problem with callback on rails 2.1.1 ad probably 2.1.0 and attachment_fu
You can check this but it does not work for me :

http://blog.methodmissing.com/2008/1/19/edge-callback-refactorings-attachment_fu/

Anonymous said...

Rails 2.1.0 having the same result. ;(