public
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/technoweenie/attachment_fu.git
Click here to lend your support to: attachment_fu and make a donation at www.pledgie.com !
updated docco for thumbnail callback
drnic (author)
Tue Apr 22 21:06:29 -0700 2008
commit  b9c5f79b11a8a9252fbdac34d3043c497aba542d
tree    843849343553c364a6f8994c8a4c6e8f4e9820f7
parent  0598b0b33a3ab0e62f27bc261c8d4f4360282166
...
173
174
175
176
 
 
177
178
179
...
173
174
175
 
176
177
178
179
180
0
@@ -173,7 +173,8 @@ module Technoweenie # :nodoc:
0
         #
0
         # class Foo < ActiveRecord::Base
0
         # acts_as_attachment
0
- # before_thumbnail_saved do |record, thumbnail|
0
+ # before_thumbnail_saved do |thumbnail|
0
+ # record = thumbnail.parent
0
         # ...
0
         # end
0
         # end

Comments