Permalink
Browse files

update docs

  • Loading branch information...
1 parent d7ec1e3 commit c9ddd35169020afb2a6079adc62e4442921ee636 @technoweenie committed Dec 9, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/attachment_fu/tasks/thumbnails.rb
@@ -14,7 +14,11 @@ class Thumbnails
# 1) Let attachment_fu define YourModel::Thumbnail, a straight subclass of your attachment model
# 2) give the thumbnails task a class name to use:
# task :thumbnails, :sizes => {:thumb => '100x100>'}, :thumbnail_class => Foo::Thumbnail
- # 3) pass nil, and subclass the current attachment class
+ # 3) give the thumbnails task a class name string to use:
+ # task :thumbnails, :sizes => {:thumb => '100x100>'}, :thumbnail_class => "Foo::Thumbnail"
+ # Attachment_fu will prepare the thumbnail class just before processing the first attachment, so the
+ # Foo::Thumbnail class does not need to exist yet.
+ # 4) pass nil, and subclass the current attachment class
#
# class Asset
# is_attachment do

0 comments on commit c9ddd35

Please sign in to comment.