question has_many formats

50 views
Skip to first unread message

tom

unread,
Jul 31, 2012, 1:35:42 PM7/31/12
to papercli...@googlegroups.com
hi

i have 2 models, gallery<has_many>media, gallery is a STI model, and i was wondering how i can achieve to have different peperclip formats for different galleries. what i want is that:
if gallerytype==item
- media format should be:
orignal, thumb, medium

if gallerytype==user
- media format should be:
thumb
 and so on

how can i check that before paperclips starts processing?

thx 

Reply all
Reply to author
Forward
0 new messages