
Processor loads twice on class which is grandchild of a_fu class
Reported by Ian White | December 16th, 2008 @ 08:07 PM
parent_options[:processor] is used to determine whether to load the processor, to stop child classes re-loading (or loading a different) processor. But this doesn't work for children of child classes.
Example:
class Attachment < ActiveRecord::Base
has_attachment :processor => :mini_magick
end
class Child < Attachment
# is fine
end
class Grandchild < Child
# parent_options[:processor] is nil, so the default
# processor is loaded, which makes for big-time crazyness
end
This commit fixes the problem: http://github.com/ianwhite/attachment_fu/tree/fd43d97
Comments and changes to this ticket
-
-
Ian White February 24th, 2009 @ 05:27 AM
- Assigned user set to Rick
I've rebased against latest attachment_fu, the commit is now here:
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป