I have a model called Graphic, each graphic belongs to one model called Book, the graphic model has 1 style, and I want to add a second one called "dealer_logo":
:thumb => ['75x75>],
:dealer_logo => ['200x45>', :jpg], :if => Proc.new {|file| Book.find(self.book_id).origin_id == 33}
I want the dealer_logo style to be generated, but if Book.origin_id is 33, I cannot get this code to work.
Can anyone give me any directions?
thank
Jason source
share