Acts_as_attachment save file in folder named after models pa

This is probably pretty easy, but I’m still a newb as far as ruby and
rails goes.

I am using the acts_as_attachment and would like to know how I go
about setting the path that the file is saved to so that it is saved
in a folder named after the models parent model id

Thanks in advance

Tony

After having another dig around found the answer so I thought I’d post
it

All you need to alter is the full_filename method in
file_system_methods.rb file to the path you want