Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update docs

  • Loading branch information...
commit c9ddd35169020afb2a6079adc62e4442921ee636 1 parent d7ec1e3
risk danger olson authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/attachment_fu/tasks/thumbnails.rb
6 lib/attachment_fu/tasks/thumbnails.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.