attachment_fu :partition => lamda {}

Hi -

I am trying to dynamically create my partition folders via
attachment_fu. I have read about a hack that allows you to do this on
the attachment model:

:partition => lambda {|a| a.article_id}

Which passes the model's object into the lambda and uses the
'article_id' attribute as its directory name. However, this isn't
work for me. I think the lambda is simply evaluating as 'true' and
causing attachment_fu to simply do conventional directory creation on
my file system.

Anyone find a way to get this to work - or have a way to dynamically
create partitions from object attributes like 'a.name' etc..?

Any help appreciated!

NVM - silly me forgot to grab the forked attachment_fu. Works fine now.

northband wrote: