I have several models that will be using file_column by way of the
“Picture” class (HABTM). Right now, all pictures are stored in:
Is there a way I can dynamically define the “store_dir” based on the
model? For example, if I have “user”, “product” and “place” models all
of which HATBTM “picture”, I’d like uploads to be located in:
public/picture/user/1/filename.jpg ## user pic
public/picture/product/6/filename.jpg ## product pic
public/picture/place/102/filename.jpg ## place pic
(…or someplace similar, organized by model).
Is this concept possible?