Mark,

Wow, not one but two possible solutions. Thanks a lot.  I think I like 
the sub-classing solution.

Thank you very much,
Elliott

Mark Reginald James wrote:
> Elliott Blatt wrote:

> A non-thread-safe solution may be:
> 
> after_save 'attachment_options[:thumbnails] = Thumb.get_thumbs(style)'
> has_attachment :content_type => :image,
>                 :thumbnails => Thumb.get_thumbs('landscape')
> 
> but a better solution may be to add PortraitPhoto and LandscapePhoto
> sub-classes.
> 
> --
> Rails Wheels - Find Plugins, List & Sell Plugins - 
> http://railswheels.com

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to