Displaying 1 result from an estimated 1 matches for "has_polymorphic_attach".
2007 Sep 18
2
Making attachment_fu polymorphic
...storage system at a time. Maybe
in a further iteration it will let
## one use both the file_system and s3 at the same time. Maybe.
## 2. Mix in Attachment_kung to whatever Model(s) you want to have
the attachments and configure them as
## you normally would for attachment_fu,except use
has_polymorphic_attachment instead of
## has_attachment and validates_as_polymorphic_attachment instead
of validates_as_attachment.
## Write the configuration params just as you normally would. For
more info on
## setting up attachemnt_fu see Mike Clark''s excellent tutorial:
## http://clarkwa...