I got this error when doing a rake community_engine:test in rails 2.2.2 install of CE... Error:undefined method `after_attachment_saved_callback_chain'
This seems to have been fixed in the March 2008 version of attachument_fu according to its CHANGELOG on github... But implementing the monkeypatch it references at http://blog.methodmissing.com/2008/1/19/edge-callback-refactorings-attachment_fu/ into attachment_fu_hacks.rb is the easiest fix. In defense of linkrot, the code is: module Technoweenie module AttachmentFu module InstanceMethods def self.included( base ) base.define_callbacks * [:after_resize, :after_attachment_saved, :before_thumbnail_saved] end def callback_with_args(method, arg = self) notify(method) result = run_callbacks(method, { :object => arg }) { | result, object| result == false } if result != false && respond_to_without_attributes?(method) result = send(method) end return result end def run_callbacks(kind, options = {}, &block) options.reverse_merge!( :object => self ) ::ActiveSupport::Callbacks::Callback.run(self.class.send("# {kind}_callback_chain"), options[:object], options, &block) end end end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
