Index:/Users/jgoebel/rails/raptor===================================================================diff with working copy (58972d1fa496)
--- a/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb Tue Jan 29 22:10:25 2008 -0500
+++ b/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb Tue Jan 29 22:10:32 2008 -0500
@@-75,6 +75,7@@ after_save :after_process_attachment
after_destroy :destroy_file
extend ClassMethods
+ define_callbacks(:after_resize, :after_attachment_saved, :before_thumbnail_saved)
include InstanceMethods
include Technoweenie::AttachmentFu::Backends.const_get("#{options[:storage].to_s.classify}Backend")
case attachment_options[:processor]
@@-393,7 +394,10@@ notify(method)
result = nil
- callbacks_for(method).each do |callback|
+ method="#{method}_callback_chain"
+ callbacks=[]
+ callbacks=self.send(method) if self.respond_to?(method)
+ callbacks.each do |callback|
result = callback.call(self, arg)
return false if result == false
end